]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: emit a fsnotify_nameremove call in sillyrename codepath
authorJeff Layton <jlayton@redhat.com>
Mon, 17 Mar 2014 11:06:58 +0000 (07:06 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 17 Mar 2014 19:14:17 +0000 (15:14 -0400)
commitd81d3699b159d8d2bf3d91aaaa57ae21ecb266ef
tree778750a4e2eb18c2a84e0514dd3fa88afbb0a858
parent1f03f3ccf7cf4480133776208fa3b6fcfdd7320b
nfs: emit a fsnotify_nameremove call in sillyrename codepath

If a file is sillyrenamed, then the generic vfs_unlink code will skip
emitting fsnotify events for it.

This patch has the sillyrename code do that instead.

In truth this is a little bit odd since we aren't actually removing the
dentry per-se, but renaming it. Still, this is probably the right thing
to do since it's what userland apps expect to see when an unlink()
occurs or some file is renamed on top of the dentry.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Tested-by: Anna Schumaker <Anna.Schumaker@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/unlink.c