diff options
Diffstat (limited to 'fs/ntfs/super.c')
| -rw-r--r-- | fs/ntfs/super.c | 33 | 
1 files changed, 5 insertions, 28 deletions
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c index 1594c90b716..21d834e5ed7 100644 --- a/fs/ntfs/super.c +++ b/fs/ntfs/super.c @@ -2471,7 +2471,6 @@ static s64 get_nr_free_clusters(ntfs_volume *vol)  	s64 nr_free = vol->nr_clusters;  	u32 *kaddr;  	struct address_space *mapping = vol->lcnbmp_ino->i_mapping; -	filler_t *readpage = (filler_t*)mapping->a_ops->readpage;  	struct page *page;  	pgoff_t index, max_index; @@ -2494,24 +2493,14 @@ static s64 get_nr_free_clusters(ntfs_volume *vol)  		 * Read the page from page cache, getting it from backing store  		 * if necessary, and increment the use count.  		 */ -		page = read_cache_page(mapping, index, (filler_t*)readpage, -				NULL); +		page = read_mapping_page(mapping, index, NULL);  		/* Ignore pages which errored synchronously. */  		if (IS_ERR(page)) { -			ntfs_debug("Sync read_cache_page() error. Skipping " +			ntfs_debug("read_mapping_page() error. Skipping "  					"page (index 0x%lx).", index);  			nr_free -= PAGE_CACHE_SIZE * 8;  			continue;  		} -		wait_on_page_locked(page); -		/* Ignore pages which errored asynchronously. */ -		if (!PageUptodate(page)) { -			ntfs_debug("Async read_cache_page() error. Skipping " -					"page (index 0x%lx).", index); -			page_cache_release(page); -			nr_free -= PAGE_CACHE_SIZE * 8; -			continue; -		}  		kaddr = (u32*)kmap_atomic(page, KM_USER0);  		/*  		 * For each 4 bytes, subtract the number of set bits. If this @@ -2562,7 +2551,6 @@ static unsigned long __get_nr_free_mft_records(ntfs_volume *vol,  {  	u32 *kaddr;  	struct address_space *mapping = vol->mftbmp_ino->i_mapping; -	filler_t *readpage = (filler_t*)mapping->a_ops->readpage;  	struct page *page;  	pgoff_t index; @@ -2576,21 +2564,11 @@ static unsigned long __get_nr_free_mft_records(ntfs_volume *vol,  		 * Read the page from page cache, getting it from backing store  		 * if necessary, and increment the use count.  		 */ -		page = read_cache_page(mapping, index, (filler_t*)readpage, -				NULL); +		page = read_mapping_page(mapping, index, NULL);  		/* Ignore pages which errored synchronously. */  		if (IS_ERR(page)) { -			ntfs_debug("Sync read_cache_page() error. Skipping " -					"page (index 0x%lx).", index); -			nr_free -= PAGE_CACHE_SIZE * 8; -			continue; -		} -		wait_on_page_locked(page); -		/* Ignore pages which errored asynchronously. */ -		if (!PageUptodate(page)) { -			ntfs_debug("Async read_cache_page() error. Skipping " +			ntfs_debug("read_mapping_page() error. Skipping "  					"page (index 0x%lx).", index); -			page_cache_release(page);  			nr_free -= PAGE_CACHE_SIZE * 8;  			continue;  		} @@ -3107,8 +3085,7 @@ static void ntfs_big_inode_init_once(void *foo, struct kmem_cache *cachep,  {  	ntfs_inode *ni = (ntfs_inode *)foo; -	if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == -			SLAB_CTOR_CONSTRUCTOR) +	if (flags & SLAB_CTOR_CONSTRUCTOR)  		inode_init_once(VFS_I(ni));  }  | 
