From: Robert Love Date: Tue, 6 Sep 2005 22:17:16 +0000 (-0700) Subject: [PATCH] fsnotify: hook on removexattr, too X-Git-Tag: v2.6.14-rc1~693 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b80068543794864f533163c586be2a1a9880a65d;p=linux-2.6 [PATCH] fsnotify: hook on removexattr, too Add fsnotify_xattr() hook to removexattr(). Signed-off-by: Robert Love Signed-off-by: John McCtuchan Cc: Andreas Gruenbacher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/xattr.c b/fs/xattr.c index dc8bc7624f..3f9c64bea1 100644 --- a/fs/xattr.c +++ b/fs/xattr.c @@ -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;