diff options
author | Amir Goldstein <[email protected]> | 2019-05-26 17:34:04 +0300 |
---|---|---|
committer | Jan Kara <[email protected]> | 2019-06-20 14:46:04 +0200 |
commit | a35d632c723cbbd0654efb7dfaa9947f258a16e5 (patch) | |
tree | 1acec5802e1793ba74feaa05778e88fa89e49769 | |
parent | 46008d9d3f0ef78524c327dbd5cc99843d4b3dae (diff) |
rpc_pipefs: call fsnotify_{unlink,rmdir}() hooks
This will allow generating fsnotify delete events after the
fsnotify_nameremove() hook is removed from d_delete().
Cc: Trond Myklebust <[email protected]>
Cc: Anna Schumaker <[email protected]>
Reviewed-by: Trond Myklebust <[email protected]>
Signed-off-by: Amir Goldstein <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 126d31472a99..73bd62979fe7 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -598,6 +598,8 @@ static int __rpc_rmdir(struct inode *dir, struct dentry *dentry) dget(dentry); ret = simple_rmdir(dir, dentry); + if (!ret) + fsnotify_rmdir(dir, dentry); d_delete(dentry); dput(dentry); return ret; @@ -609,6 +611,8 @@ static int __rpc_unlink(struct inode *dir, struct dentry *dentry) dget(dentry); ret = simple_unlink(dir, dentry); + if (!ret) + fsnotify_unlink(dir, dentry); d_delete(dentry); dput(dentry); return ret; |