diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2021-08-03 19:38:22 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-03 19:43:13 +0300 |
commit | 69f4a26c1e0c7c5e5e77c5bd7b271743c124c545 (patch) | |
tree | 4e944b086cefaeb1145a09dad8c16a72fdff2619 /init | |
parent | c1b79f11f4ec27d3b3197a9584950a3be178c717 (diff) | |
download | linux-69f4a26c1e0c7c5e5e77c5bd7b271743c124c545.tar.xz |
iomap: support reading inline data from non-zero pos
The existing inline data support only works for cases where the entire
file is stored as inline data. For larger files, EROFS stores the
initial blocks separately and the remainder of the file ("file tail")
adjacent to the inode. Generalise inline data to allow reading the
inline file tail. Tails may not cross a page boundary in memory.
We currently have no filesystems that support tails and writing,
so that case is currently disabled (see iomap_write_begin_inline).
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions