diff options
Diffstat (limited to 'fs/notify/fanotify/fanotify_user.c')
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index 84155841a025..3320f0c57e31 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c | |||
@@ -302,7 +302,7 @@ static __u32 fanotify_mark_remove_from_mask(struct fsnotify_mark *fsn_mark, __u3 | |||
302 | 302 | ||
303 | spin_lock(&fsn_mark->lock); | 303 | spin_lock(&fsn_mark->lock); |
304 | oldmask = fsn_mark->mask; | 304 | oldmask = fsn_mark->mask; |
305 | fsn_mark->mask = oldmask & ~mask; | 305 | fsnotify_set_mark_mask_locked(fsn_mark, (oldmask & ~mask)); |
306 | spin_unlock(&fsn_mark->lock); | 306 | spin_unlock(&fsn_mark->lock); |
307 | 307 | ||
308 | if (!(oldmask & ~mask)) | 308 | if (!(oldmask & ~mask)) |
@@ -359,7 +359,7 @@ static __u32 fanotify_mark_add_to_mask(struct fsnotify_mark *fsn_mark, __u32 mas | |||
359 | 359 | ||
360 | spin_lock(&fsn_mark->lock); | 360 | spin_lock(&fsn_mark->lock); |
361 | oldmask = fsn_mark->mask; | 361 | oldmask = fsn_mark->mask; |
362 | fsn_mark->mask = oldmask | mask; | 362 | fsnotify_set_mark_mask_locked(fsn_mark, (oldmask | mask)); |
363 | spin_unlock(&fsn_mark->lock); | 363 | spin_unlock(&fsn_mark->lock); |
364 | 364 | ||
365 | return mask & ~oldmask; | 365 | return mask & ~oldmask; |