kernfs: make kernfs_open_file->mmapped a bitfield
authorTejun Heo <tj@kernel.org>
Tue, 27 Dec 2016 19:49:02 +0000 (14:49 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 27 Dec 2016 19:49:02 +0000 (14:49 -0500)
commita1d82aff5df760d933b6ea3a03805dbc2bd73eb8
tree2a2147fc82ce05187229a4c366092b82b778a0c3
parent7ce7d89f48834cefece7804d38fc5d85382edf77
kernfs: make kernfs_open_file->mmapped a bitfield

More kernfs_open_file->mutex synchronized flags are planned to be
added.  Convert ->mmapped to a bitfield in preparation.

While at it, make kernfs_fop_mmap() use "true" instead of "1" on
->mmapped.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Acked-by: Zefan Li <lizefan@huawei.com>
fs/kernfs/file.c
include/linux/kernfs.h