aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ufs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ufs/dir.c')
-rw-r--r--fs/ufs/dir.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/ufs/dir.c b/fs/ufs/dir.c
index 4890ddf1518e..154452172f43 100644
--- a/fs/ufs/dir.c
+++ b/fs/ufs/dir.c
@@ -19,7 +19,6 @@
19#include <linux/time.h> 19#include <linux/time.h>
20#include <linux/fs.h> 20#include <linux/fs.h>
21#include <linux/ufs_fs.h> 21#include <linux/ufs_fs.h>
22#include <linux/smp_lock.h>
23 22
24#include "swab.h" 23#include "swab.h"
25#include "util.h" 24#include "util.h"
@@ -180,13 +179,9 @@ fail:
180static struct page *ufs_get_page(struct inode *dir, unsigned long n) 179static struct page *ufs_get_page(struct inode *dir, unsigned long n)
181{ 180{
182 struct address_space *mapping = dir->i_mapping; 181 struct address_space *mapping = dir->i_mapping;
183 struct page *page = read_cache_page(mapping, n, 182 struct page *page = read_mapping_page(mapping, n, NULL);
184 (filler_t*)mapping->a_ops->readpage, NULL);
185 if (!IS_ERR(page)) { 183 if (!IS_ERR(page)) {
186 wait_on_page_locked(page);
187 kmap(page); 184 kmap(page);
188 if (!PageUptodate(page))
189 goto fail;
190 if (!PageChecked(page)) 185 if (!PageChecked(page))
191 ufs_check_page(page); 186 ufs_check_page(page);
192 if (PageError(page)) 187 if (PageError(page))