diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 17:08:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 17:08:20 -0500 |
commit | 23281c8034879c47639ee0f76c34d13ef6beb8ce (patch) | |
tree | bacd31cad4a799b1fc2f77827cbaf7a929c377b8 /kernel/audit_tree.c | |
parent | f0b60bfa952458286f43a63c07b0eea170b2cc95 (diff) | |
parent | ab97f87325e28b7ef7717e6cb62e8da14a7176e1 (diff) |
Merge branch 'fsnotify' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull fsnotify updates from Jan Kara:
- fixes of use-after-tree issues when handling fanotify permission
events from Miklos
- refcount_t conversions from Elena
- fixes of ENOMEM handling in dnotify and fsnotify from me
* 'fsnotify' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
fsnotify: convert fsnotify_mark.refcnt from atomic_t to refcount_t
fanotify: clean up CONFIG_FANOTIFY_ACCESS_PERMISSIONS ifdefs
fsnotify: clean up fsnotify()
fanotify: fix fsnotify_prepare_user_wait() failure
fsnotify: fix pinning group in fsnotify_prepare_user_wait()
fsnotify: pin both inode and vfsmount mark
fsnotify: clean up fsnotify_prepare/finish_user_wait()
fsnotify: convert fsnotify_group.refcnt from atomic_t to refcount_t
fsnotify: Protect bail out path of fsnotify_add_mark_locked() properly
dnotify: Handle errors from fsnotify_add_mark_locked() in fcntl_dirnotify()
Diffstat (limited to 'kernel/audit_tree.c')
-rw-r--r-- | kernel/audit_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c index d4b050d9a66e..fd353120e0d9 100644 --- a/kernel/audit_tree.c +++ b/kernel/audit_tree.c | |||
@@ -1008,7 +1008,7 @@ static void audit_tree_freeing_mark(struct fsnotify_mark *entry, struct fsnotify | |||
1008 | * We are guaranteed to have at least one reference to the mark from | 1008 | * We are guaranteed to have at least one reference to the mark from |
1009 | * either the inode or the caller of fsnotify_destroy_mark(). | 1009 | * either the inode or the caller of fsnotify_destroy_mark(). |
1010 | */ | 1010 | */ |
1011 | BUG_ON(atomic_read(&entry->refcnt) < 1); | 1011 | BUG_ON(refcount_read(&entry->refcnt) < 1); |
1012 | } | 1012 | } |
1013 | 1013 | ||
1014 | static const struct fsnotify_ops audit_tree_ops = { | 1014 | static const struct fsnotify_ops audit_tree_ops = { |