Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=446e534985bada0ad7451c08cf213c06695f9b67 Commit: 446e534985bada0ad7451c08cf213c06695f9b67 Parent: d4d9cdcb470784df76304f75d0ce88f20f15fa6a Author: Trond Myklebust <[EMAIL PROTECTED]> AuthorDate: Wed Oct 3 15:58:38 2007 -0400 Committer: Trond Myklebust <[EMAIL PROTECTED]> CommitDate: Tue Oct 9 17:19:30 2007 -0400
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 <[EMAIL PROTECTED]> --- fs/nfs/dir.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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: - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html