mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
[PATCH] fsnotify: hook on removexattr, too
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>
This commit is contained in:
parent
90563ec412
commit
b800685437
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user