fsnotify: convert runtime BUG_ON() to BUILD_BUG_ON()
authorAmir Goldstein <amir73il@gmail.com>
Wed, 3 Oct 2018 21:25:36 +0000 (00:25 +0300)
committerJan Kara <jack@suse.cz>
Thu, 4 Oct 2018 11:28:50 +0000 (13:28 +0200)
commita39f7ec41766118bf836d266224505741570ada6
tree441cd39d5155d82b43cb83fed15902326d6b5424
parent23c9deeb3285d34fd243abb3d6b9f07db60c3cf4
fsnotify: convert runtime BUG_ON() to BUILD_BUG_ON()

The BUG_ON() statements to verify number of bits in ALL_FSNOTIFY_BITS
and ALL_INOTIFY_BITS are converted to build time check of the constant.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fsnotify.c
fs/notify/inotify/inotify_user.c