diff options
author | Tejun Heo <tj@kernel.org> | 2016-12-27 22:49:02 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-12-27 22:49:02 +0300 |
commit | a1d82aff5df760d933b6ea3a03805dbc2bd73eb8 (patch) | |
tree | 2a2147fc82ce05187229a4c366092b82b778a0c3 /include/linux/kernfs.h | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) | |
download | linux-a1d82aff5df760d933b6ea3a03805dbc2bd73eb8.tar.xz |
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>
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r-- | include/linux/kernfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index 7056238fd9f5..afd4e5abc4fb 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h @@ -185,7 +185,7 @@ struct kernfs_open_file { char *prealloc_buf; size_t atomic_write_len; - bool mmapped; + bool mmapped:1; const struct vm_operations_struct *vm_ops; }; |