Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

NFS: Fix post-op attribute revalidation...

- Missing nfs_mark_for_revalidate in nfs_proc_link()
- Missing nfs_mark_for_revalidate in nfs_rename()

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

+4
+3
fs/nfs/dir.c
··· 1287 1287 nfs_begin_data_update(dentry->d_inode); 1288 1288 error = NFS_PROTO(dir)->rename(dir, &dentry->d_name, 1289 1289 dir, &qsilly); 1290 + nfs_mark_for_revalidate(dentry->d_inode); 1290 1291 nfs_end_data_update(dentry->d_inode); 1291 1292 } else 1292 1293 error = NFS_PROTO(dir)->rename(dir, &dentry->d_name, ··· 1335 1334 /* The VFS may want to delete this inode */ 1336 1335 if (error == 0) 1337 1336 inode->i_nlink--; 1337 + nfs_mark_for_revalidate(inode); 1338 1338 nfs_end_data_update(inode); 1339 1339 } else 1340 1340 error = NFS_PROTO(dir)->remove(dir, &dentry->d_name); ··· 1558 1556 nfs_begin_data_update(old_inode); 1559 1557 error = NFS_PROTO(old_dir)->rename(old_dir, &old_dentry->d_name, 1560 1558 new_dir, &new_dentry->d_name); 1559 + nfs_mark_for_revalidate(old_inode); 1561 1560 nfs_end_data_update(old_inode); 1562 1561 nfs_end_data_update(new_dir); 1563 1562 nfs_end_data_update(old_dir);
+1
fs/nfs/proc.c
··· 375 375 376 376 dprintk("NFS call link %s\n", name->name); 377 377 status = rpc_call(NFS_CLIENT(inode), NFSPROC_LINK, &arg, NULL, 0); 378 + nfs_mark_for_revalidate(inode); 378 379 nfs_mark_for_revalidate(dir); 379 380 dprintk("NFS reply link: %d\n", status); 380 381 return status;