mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
fsnotify: Remove fsnotify_set_mark_{,ignored_}mask_locked()
These helpers are now only a simple assignment and just obfuscate what is going on. Remove them. Reviewed-by: Miklos Szeredi <mszeredi@redhat.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
05f0e38724
commit
66d2b81bcb
5 changed files with 9 additions and 33 deletions
|
@ -513,14 +513,12 @@ static int inotify_update_existing_watch(struct fsnotify_group *group,
|
|||
i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark);
|
||||
|
||||
spin_lock(&fsn_mark->lock);
|
||||
|
||||
old_mask = fsn_mark->mask;
|
||||
if (add)
|
||||
fsnotify_set_mark_mask_locked(fsn_mark, (fsn_mark->mask | mask));
|
||||
fsn_mark->mask |= mask;
|
||||
else
|
||||
fsnotify_set_mark_mask_locked(fsn_mark, mask);
|
||||
fsn_mark->mask = mask;
|
||||
new_mask = fsn_mark->mask;
|
||||
|
||||
spin_unlock(&fsn_mark->lock);
|
||||
|
||||
if (old_mask != new_mask) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue