Commit 69afd267 authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Chuck Lever
Browse files

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: default avatarJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 663e36f0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1333,6 +1333,7 @@ void nfsd_client_rmdir(struct dentry *dentry)
	dget(dentry);
	ret = simple_rmdir(dir, dentry);
	WARN_ON_ONCE(ret);
	fsnotify_rmdir(dir, dentry);
	d_delete(dentry);
	inode_unlock(dir);
}