From: Robert Love Add fsnotify_xattr() hook to removexattr(). Signed-off-by: Robert Love Signed-off-by: John McCtuchan Cc: Andreas Gruenbacher Signed-off-by: Andrew Morton --- 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-06 14:45:39.000000000 -0700 +++ devel-akpm/fs/xattr.c 2005-08-06 14:45:39.000000000 -0700 @@ -307,6 +307,8 @@ removexattr(struct dentry *d, char __use 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; _