X-Git-Url: http://git.rot13.org/?p=powerpc.git;a=blobdiff_plain;f=fs%2Fafs%2Fmntpt.c;h=034fcfd4e3304d2ff6942c2a91c5ab6237460558;hp=b905ae37f9129bb52ca1b9e9aa096f9e8ceabd49;hb=6fe6900e1e5b6fa9e5c59aa5061f244fe3f467e2;hpb=714b8171af9c930a59a0da8f6fe50518e70ab035 diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c index b905ae37f9..034fcfd4e3 100644 --- a/fs/afs/mntpt.c +++ b/fs/afs/mntpt.c @@ -68,13 +68,11 @@ int afs_mntpt_check_symlink(struct afs_vnode *vnode, struct key *key) } ret = -EIO; - wait_on_page_locked(page); - buf = kmap(page); - if (!PageUptodate(page)) - goto out_free; if (PageError(page)) goto out_free; + buf = kmap(page); + /* examine the symlink's contents */ size = vnode->status.size; _debug("symlink to %*.*s", (int) size, (int) size, buf); @@ -91,8 +89,8 @@ int afs_mntpt_check_symlink(struct afs_vnode *vnode, struct key *key) ret = 0; -out_free: kunmap(page); +out_free: page_cache_release(page); out: _leave(" = %d", ret); @@ -171,8 +169,7 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt) } ret = -EIO; - wait_on_page_locked(page); - if (!PageUptodate(page) || PageError(page)) + if (PageError(page)) goto error; buf = kmap(page);