summaryrefslogtreecommitdiffstats
path: root/fs/kernfs
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2016-12-27 14:49:02 -0500
committerTejun Heo <tj@kernel.org>2016-12-27 14:49:02 -0500
commita1d82aff5df760d933b6ea3a03805dbc2bd73eb8 (patch)
tree2a2147fc82ce05187229a4c366092b82b778a0c3 /fs/kernfs
parent7ce7d89f48834cefece7804d38fc5d85382edf77 (diff)
downloadlinux-a1d82aff5df760d933b6ea3a03805dbc2bd73eb8.tar.gz
linux-a1d82aff5df760d933b6ea3a03805dbc2bd73eb8.tar.bz2
linux-a1d82aff5df760d933b6ea3a03805dbc2bd73eb8.zip
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 'fs/kernfs')
-rw-r--r--fs/kernfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c
index 78219d5644e9..d0b6fb13ead0 100644
--- a/fs/kernfs/file.c
+++ b/fs/kernfs/file.c
@@ -516,7 +516,7 @@ static int kernfs_fop_mmap(struct file *file, struct vm_area_struct *vma)
goto out_put;
rc = 0;
- of->mmapped = 1;
+ of->mmapped = true;
of->vm_ops = vma->vm_ops;
vma->vm_ops = &kernfs_vm_ops;
out_put: