diff options
Diffstat (limited to 'fs/sysv/dir.c')
-rw-r--r-- | fs/sysv/dir.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/sysv/dir.c b/fs/sysv/dir.c index ebf7007fa161..e566b387fcf9 100644 --- a/fs/sysv/dir.c +++ b/fs/sysv/dir.c | |||
@@ -54,17 +54,9 @@ static struct page * dir_get_page(struct inode *dir, unsigned long n) | |||
54 | { | 54 | { |
55 | struct address_space *mapping = dir->i_mapping; | 55 | struct address_space *mapping = dir->i_mapping; |
56 | struct page *page = read_mapping_page(mapping, n, NULL); | 56 | struct page *page = read_mapping_page(mapping, n, NULL); |
57 | if (!IS_ERR(page)) { | 57 | if (!IS_ERR(page)) |
58 | wait_on_page_locked(page); | ||
59 | kmap(page); | 58 | kmap(page); |
60 | if (!PageUptodate(page)) | ||
61 | goto fail; | ||
62 | } | ||
63 | return page; | 59 | return page; |
64 | |||
65 | fail: | ||
66 | dir_put_page(page); | ||
67 | return ERR_PTR(-EIO); | ||
68 | } | 60 | } |
69 | 61 | ||
70 | static int sysv_readdir(struct file * filp, void * dirent, filldir_t filldir) | 62 | static int sysv_readdir(struct file * filp, void * dirent, filldir_t filldir) |