inotify: Fix erroneous update of bit count
authorDaniel Rosenberg <drosen@google.com>
Wed, 23 Mar 2016 19:09:25 +0000 (12:09 -0700)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:57 +0000 (18:03 +0200)
Patch "vfs: add d_canonical_path for stacked filesystem support"
erroneously updated the ALL_INOTIFY_BITS count. This changes it back

Change-Id: Idb04edc736da276159d30f04c40cff9d6b1e070f

fs/notify/inotify/inotify_user.c

index dac2dbfcef43d649ab7796ce74109e5c8fea08f2..32f57fa4f4fdbf090f61b3841c2692590dd57332 100644 (file)
@@ -849,7 +849,7 @@ static int __init inotify_user_setup(void)
        BUILD_BUG_ON(IN_ISDIR != FS_ISDIR);
        BUILD_BUG_ON(IN_ONESHOT != FS_IN_ONESHOT);
 
-       BUG_ON(hweight32(ALL_INOTIFY_BITS) != 22);
+       BUG_ON(hweight32(ALL_INOTIFY_BITS) != 21);
 
        inotify_inode_mark_cachep = KMEM_CACHE(inotify_inode_mark, SLAB_PANIC);
        event_priv_cachep = KMEM_CACHE(inotify_event_private_data, SLAB_PANIC);