]> git.baikalelectronics.ru Git - kernel.git/commit
fanotify_user: use upper_32_bits() to verify mask
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 25 Mar 2021 08:37:43 +0000 (09:37 +0100)
committerJan Kara <jack@suse.cz>
Thu, 25 Mar 2021 14:33:45 +0000 (15:33 +0100)
commit06e0fa91f46fbfc38c135a5f54f2291325d25922
tree517f550b13521af5c20556eb32fbd188eb64b437
parent2afc065329a1a7083fabd61f2e7b66fcee6b02b7
fanotify_user: use upper_32_bits() to verify mask

I don't see an obvious reason why the upper 32 bit check needs to be
open-coded this way. Switch to upper_32_bits() which is more idiomatic and
should conceptually be the same check.

Cc: Amir Goldstein <amir73il@gmail.com>
Cc: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20210325083742.2334933-1-brauner@kernel.org
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c