Skip to content

Commit bad2a52

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
NFSv2: Ensure that the directory metadata gets revalidated on file create
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent efea90a commit bad2a52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfs/proc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ nfs_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
211211
nfs_fattr_init(&fattr);
212212
dprintk("NFS call create %s\n", dentry->d_name.name);
213213
status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0);
214+
nfs_mark_for_revalidate(dir);
214215
if (status == 0)
215216
status = nfs_instantiate(dentry, &fhandle, &fattr);
216217
dprintk("NFS reply create: %d\n", status);

0 commit comments

Comments
 (0)