projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec181f6
)
iomap: add inline data support to iomap_readpage_actor
author
Andreas Gruenbacher
<
[email protected]
>
Tue, 3 Jul 2018 16:07:47 +0000
(09:07 -0700)
committer
Darrick J. Wong
<
[email protected]
>
Tue, 3 Jul 2018 16:07:47 +0000
(09:07 -0700)
Just copy the inline data into the page using the existing helper.
Signed-off-by: Andreas Gruenbacher <
[email protected]
>
Signed-off-by: Christoph Hellwig <
[email protected]
>
Reviewed-by: Darrick J. Wong <
[email protected]
>
Signed-off-by: Darrick J. Wong <
[email protected]
>
fs/iomap.c
patch
|
blob
|
history
diff --git
a/fs/iomap.c
b/fs/iomap.c
index 98a1fdd5c091bc397fdb30c6afaab3cc8b968e9c..13cdcf33e6c022b3c52b29ad56016b60b4e7bb7d 100644
(file)
--- 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,
bool is_contig = false;
sector_t sector;
+ if (iomap->type == IOMAP_INLINE) {
+ WARN_ON_ONCE(poff);
+ iomap_read_inline_data(inode, page, iomap);
+ return PAGE_SIZE;
+ }
+
/* we don't support blocksize < PAGE_SIZE quite yet. */
WARN_ON_ONCE(pos != page_offset(page));
WARN_ON_ONCE(plen != PAGE_SIZE);