From 2dabb89084b34919a86c889b6e89a023cab5aa9b Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Tue, 2 Oct 2007 10:30:00 -0400 Subject: [PATCH] --- yaml --- r: 69283 b: refs/heads/master c: 81c768808c78283e1b4ed4cd2cad2571294b2090 h: refs/heads/master i: 69281: 8466e30cb380af0c73150b48e77e7a038dd88aa1 69279: 7002894dc7a5c70fe6e059693facd040fb53a941 v: v3 --- [refs] | 2 +- trunk/fs/nfs/nfs3proc.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index a1015fe8f6b3..13bb2c666944 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d75340cc4de5c187fbf0bba234309ca86cf0a2fb +refs/heads/master: 81c768808c78283e1b4ed4cd2cad2571294b2090 diff --git a/trunk/fs/nfs/nfs3proc.c b/trunk/fs/nfs/nfs3proc.c index ce1fb99e67e1..6e05f6c9c910 100644 --- a/trunk/fs/nfs/nfs3proc.c +++ b/trunk/fs/nfs/nfs3proc.c @@ -166,6 +166,7 @@ nfs3_proc_lookup(struct inode *dir, struct qstr *name, nfs_fattr_init(&dir_attr); nfs_fattr_init(fattr); status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); + nfs_refresh_inode(dir, &dir_attr); if (status >= 0 && !(fattr->valid & NFS_ATTR_FATTR)) { msg.rpc_proc = &nfs3_procedures[NFS3PROC_GETATTR]; msg.rpc_argp = fhandle; @@ -173,8 +174,6 @@ nfs3_proc_lookup(struct inode *dir, struct qstr *name, status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); } dprintk("NFS reply lookup: %d\n", status); - if (status >= 0) - status = nfs_refresh_inode(dir, &dir_attr); return status; }