From: Trond Myklebust Date: Sat, 20 Oct 2007 17:07:21 +0000 (-0400) Subject: NFSv2: Ensure that the directory metadata gets revalidated on file create X-Git-Tag: v2.6.24-rc1~114 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bad2a524113075d1e0665f1e111283ab25135ade;p=platform%2Fkernel%2Flinux-3.10.git NFSv2: Ensure that the directory metadata gets revalidated on file create Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index 97669ed..4f80d88 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c @@ -211,6 +211,7 @@ nfs_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr, nfs_fattr_init(&fattr); dprintk("NFS call create %s\n", dentry->d_name.name); status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); + nfs_mark_for_revalidate(dir); if (status == 0) status = nfs_instantiate(dentry, &fhandle, &fattr); dprintk("NFS reply create: %d\n", status);