fsnotify: clean up spinlock assertions
authorJan Kara <jack@suse.cz>
Fri, 7 Oct 2016 23:57:01 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 8 Oct 2016 01:46:26 +0000 (18:46 -0700)
commited2726406c6a71f5da63719c0ba7d9e21dd9581c
tree8443da5c76097a56a635a4a5c834998498a99c01
parent0b1b86527df4b1f398266c23e926dd788925bb69
fsnotify: clean up spinlock assertions

Use assert_spin_locked() macro instead of hand-made BUG_ON statements.

Link: http://lkml.kernel.org/r/1474537439-18919-1-git-send-email-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Suggested-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/notify/fanotify/fanotify_user.c
fs/notify/notification.c