[PATCH v10 03/10] fs: Export alloc_empty_backing_file
Gao Xiang
hsiangkao at linux.alibaba.com
Tue Dec 23 19:31:42 AEDT 2025
On 2025/12/23 09:56, Hongbo Li wrote:
> There is no need to open nonexistent real files if backing files
> couldn't be backed by real files (e.g., EROFS page cache sharing
> doesn't need typical real files to open again).
>
> Therefore, we export the alloc_empty_backing_file() helper, allowing
> filesystems to dynamically set the backing file without real file
> open. This is particularly useful for obtaining the correct @path
> and @inode when calling file_user_path() and file_user_inode().
>
> Signed-off-by: Hongbo Li <lihongbo22 at huawei.com>
Reviewed-by: Gao Xiang <hsiangkao at linux.alibaba.com>
(I hope Amir could ack this particular patch too..)
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list