diff options
author | Amir Goldstein <amir73il@gmail.com> | 2023-10-13 12:49:37 +0300 |
---|---|---|
committer | Amir Goldstein <amir73il@gmail.com> | 2023-12-23 17:35:09 +0300 |
commit | f567377e406c032fff0799bde4fdf4a977529b84 (patch) | |
tree | d5da6a53b7bb039eaaf9e75720a24f4b0a955602 /include | |
parent | 9b7e9e2f5d5c3d079ec46bc71b114012e362ea6e (diff) | |
download | linux-f567377e406c032fff0799bde4fdf4a977529b84.tar.xz |
fs: factor out backing_file_mmap() helper
Assert that the file object is allocated in a backing_file container
so that file_user_path() could be used to display the user path and
not the backing file's path in /proc/<pid>/maps.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/backing-file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/backing-file.h b/include/linux/backing-file.h index 0546d5b1c9f5..3f1fe1774f1b 100644 --- a/include/linux/backing-file.h +++ b/include/linux/backing-file.h @@ -36,5 +36,7 @@ ssize_t backing_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags, struct backing_file_ctx *ctx); +int backing_file_mmap(struct file *file, struct vm_area_struct *vma, + struct backing_file_ctx *ctx); #endif /* _LINUX_BACKING_FILE_H */ |