aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2018-07-03 12:07:47 -0400
committerDarrick J. Wong <darrick.wong@oracle.com>2018-07-03 12:07:47 -0400
commit806a1477b10a153cd01ee7ccba8ca2492df3e0b2 (patch)
treeeeb90996b833d44d9d3d3a9e3562f86669469456
parentec181f6782d8e8c22aa2c3462a20195cfa214ec6 (diff)
iomap: add inline data support to iomap_readpage_actor
Just copy the inline data into the page using the existing helper. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
-rw-r--r--fs/iomap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/iomap.c b/fs/iomap.c
index 98a1fdd5c091..13cdcf33e6c0 100644
--- a/fs/iomap.c
+++ b/fs/iomap.c
@@ -155,6 +155,12 @@ iomap_readpage_actor(struct inode *inode, loff_t pos, loff_t length, void *data,
155 bool is_contig = false; 155 bool is_contig = false;
156 sector_t sector; 156 sector_t sector;
157 157
158 if (iomap->type == IOMAP_INLINE) {
159 WARN_ON_ONCE(poff);
160 iomap_read_inline_data(inode, page, iomap);
161 return PAGE_SIZE;
162 }
163
158 /* we don't support blocksize < PAGE_SIZE quite yet. */ 164 /* we don't support blocksize < PAGE_SIZE quite yet. */
159 WARN_ON_ONCE(pos != page_offset(page)); 165 WARN_ON_ONCE(pos != page_offset(page));
160 WARN_ON_ONCE(plen != PAGE_SIZE); 166 WARN_ON_ONCE(plen != PAGE_SIZE);