Skip to content

Commit

Permalink
[PATCH] fsnotify: hook on removexattr, too
Browse files Browse the repository at this point in the history
Add fsnotify_xattr() hook to removexattr().

Signed-off-by: Robert Love <[email protected]>
Signed-off-by: John McCtuchan <[email protected]>
Cc: Andreas Gruenbacher <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Robert Love authored and Linus Torvalds committed Sep 7, 2005
1 parent 90563ec commit b800685
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b800685

Please sign in to comment.