diff options
| author | Jingbo Xu <jefflexu@linux.alibaba.com> | 2026-08-20 21:40:06 +0800 |
|---|---|---|
| committer | Gao Xiang <xiang@kernel.org> | 2026-08-24 12:20:27 +0800 |
| commit | 8ebf9589788575f8868c236d077dbe612395e084 (patch) | |
| tree | 581f6a971dd91928ce0846fcc8e4bda1fbc4e70b /include/linux/workqueue.h | |
| parent | ab74edaeb1ae7c7194e79007e6afdfe788111a3f (diff) | |
erofs: support SEEK_HOLE/SEEK_DATA in inode_share mode
When inode_share is enabled, erofs_ishare_fops.llseek falls back to
generic_file_llseek, which treats the whole file as data and always
returns i_size for SEEK_HOLE, hiding real holes in sparse files.
Switch it to erofs_file_llseek instead. For user files f_mapping->host
is always the real erofs inode, so SEEK_HOLE/SEEK_DATA resolve the
per-file on-disk layout via iomap_seek_hole()/iomap_seek_data().
Reviewed-by: Gao Xiang <xiang@kernel.org>
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <xiang@kernel.org>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions
