mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
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>
This commit is contained in:
parent
7ce7d89f48
commit
a1d82aff5d
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue