]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - net/sunrpc/rpc_pipe.c
Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[zynq/linux.git] / net / sunrpc / rpc_pipe.c
index 0b6c27cd6bdec43264bea9c659b822ea7aaf2ccd..748bac601e47df6bcfc3fed63909eeb44db98d23 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * net/sunrpc/rpc_pipe.c
  *
@@ -598,6 +599,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 +612,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;