[PATCH] fsnotify: hook on removexattr, too
authorRobert Love <rml@novell.com>
Tue, 6 Sep 2005 22:17:16 +0000 (15:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:27 +0000 (16:57 -0700)
Add fsnotify_xattr() hook to removexattr().

Signed-off-by: Robert Love <rml@novell.com>
Signed-off-by: John McCtuchan <ttb@tentacle.dhs.org>
Cc: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/xattr.c

index dc8bc7624f26be341900d900340cb0e7bcb6ce60..3f9c64bea151fd7c6df4297e8bfa01b626a02bd5 100644 (file)
@@ -325,6 +325,8 @@ removexattr(struct dentry *d, char __user *name)
                down(&d->d_inode->i_sem);
                error = d->d_inode->i_op->removexattr(d, kname);
                up(&d->d_inode->i_sem);
+               if (!error)
+                       fsnotify_xattr(d);
        }
 out:
        return error;