提交 69afd267 编写于 作者: J J. Bruce Fields 提交者: Chuck Lever

nfsd: fsnotify on rmdir under nfsd/clients/

Userspace should be able to monitor nfsd/clients/ to see when clients
come and go, but we're failing to send fsnotify events.

Cc: stable@kernel.org
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
上级 663e36f0
...@@ -1333,6 +1333,7 @@ void nfsd_client_rmdir(struct dentry *dentry) ...@@ -1333,6 +1333,7 @@ void nfsd_client_rmdir(struct dentry *dentry)
dget(dentry); dget(dentry);
ret = simple_rmdir(dir, dentry); ret = simple_rmdir(dir, dentry);
WARN_ON_ONCE(ret); WARN_ON_ONCE(ret);
fsnotify_rmdir(dir, dentry);
d_delete(dentry); d_delete(dentry);
inode_unlock(dir); inode_unlock(dir);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册