<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: Robert Love &lt;rml@novell.com&gt;

Add fsnotify_xattr() hook to removexattr().

Signed-off-by: Robert Love &lt;rml@novell.com&gt;
Signed-off-by: John McCtuchan &lt;ttb@tentacle.dhs.org&gt;
Cc: Andreas Gruenbacher &lt;agruen@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 fs/xattr.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN fs/xattr.c~fsnotify-hook-on-removexattr-too fs/xattr.c
--- devel/fs/xattr.c~fsnotify-hook-on-removexattr-too	2005-08-30 18:41:55.000000000 -0700
+++ devel-akpm/fs/xattr.c	2005-08-30 18:41:55.000000000 -0700
@@ -325,6 +325,8 @@ removexattr(struct dentry *d, char __use
 		down(&amp;d-&gt;d_inode-&gt;i_sem);
 		error = d-&gt;d_inode-&gt;i_op-&gt;removexattr(d, kname);
 		up(&amp;d-&gt;d_inode-&gt;i_sem);
+		if (!error)
+			fsnotify_xattr(d);
 	}
 out:
 	return error;
_
</pre></body></html>