if (!PageLocked(page)) PAGE_BUG(page); 
BUG_ON(!PageLocked(page));  
void udf_expand_file_adinicb(struct inode * inode, int newsize, int * err){	struct page *page;	char *kaddr;	struct writeback_control udf_wbc = {		.sync_mode = WB_SYNC_NONE,		.nr_to_write = 1,	};	/* from now on we have normal address_space methods */	inode->i_data.a_ops = &udf_aops;	if (!UDF_I_LENALLOC(inode))	{		if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD))			UDF_I_ALLOCTYPE(inode) = ICBTAG_FLAG_AD_SHORT;		else			UDF_I_ALLOCTYPE(inode) = ICBTAG_FLAG_AD_LONG;		mark_inode_dirty(inode);		return;	}	page = grab_cache_page(inode->i_mapping, 0);	if (!PageLocked(page))		PAGE_BUG(page);	if (!PageUptodate(page))	{		kaddr = kmap(page);		memset(kaddr + UDF_I_LENALLOC(inode), 0x00,			PAGE_CACHE_SIZE - UDF_I_LENALLOC(inode));		memcpy(kaddr, UDF_I_DATA(inode) + UDF_I_LENEATTR(inode),			UDF_I_LENALLOC(inode));		flush_dcache_page(page);		SetPageUptodate(page);		kunmap(page);	}	memset(UDF_I_DATA(inode) + UDF_I_LENEATTR(inode), 0x00,		UDF_I_LENALLOC(inode));	UDF_I_LENALLOC(inode) = 0;	if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD))		UDF_I_ALLOCTYPE(inode) = ICBTAG_FLAG_AD_SHORT;	else		UDF_I_ALLOCTYPE(inode) = ICBTAG_FLAG_AD_LONG;	inode->i_data.a_ops->writepage(page, &udf_wbc);	page_cache_release(page);	mark_inode_dirty(inode);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/cd7619d6bf36564cf54ff7218ef54e558a741913/inode.c/buggy/fs/udf/inode.c