projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm: make read_cache_page synchronous
[powerpc.git]
/
fs
/
sysv
/
dir.c
diff --git
a/fs/sysv/dir.c
b/fs/sysv/dir.c
index
ebf7007
..
e566b38
100644
(file)
--- 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)
{
struct address_space *mapping = dir->i_mapping;
struct page *page = read_mapping_page(mapping, n, NULL);
{
struct address_space *mapping = dir->i_mapping;
struct page *page = read_mapping_page(mapping, n, NULL);
- if (!IS_ERR(page)) {
- wait_on_page_locked(page);
+ if (!IS_ERR(page))
kmap(page);
kmap(page);
- if (!PageUptodate(page))
- goto fail;
- }
return page;
return page;
-
-fail:
- dir_put_page(page);
- return ERR_PTR(-EIO);
}
static int sysv_readdir(struct file * filp, void * dirent, filldir_t filldir)
}
static int sysv_readdir(struct file * filp, void * dirent, filldir_t filldir)