From: Trond Myklebust Date: Wed, 3 Oct 2007 19:58:38 +0000 (-0400) Subject: NFS: Fix a bug in nfs_open_revalidate() X-Git-Tag: v2.6.24-rc1~1285^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=446e534985bada0ad7451c08cf213c06695f9b67;p=platform%2Fkernel%2Flinux-3.10.git NFS: Fix a bug in nfs_open_revalidate() We want to set the verifier when the call to nfs4_open_revalidate() _succeeds_. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 166a833..d58bfb8 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1078,7 +1078,7 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd) lock_kernel(); verifier = nfs_save_change_attribute(dir); ret = nfs4_open_revalidate(dir, dentry, openflags, nd); - if (!ret) + if (ret == 1) nfs_set_verifier(dentry, verifier); unlock_kernel(); out: