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:
0127251
)
xfs: add support for passing in write hints for buffered writes
author
Jens Axboe
<
[email protected]
>
Tue, 27 Jun 2017 15:34:01 +0000
(09:34 -0600)
committer
Jens Axboe
<
[email protected]
>
Tue, 27 Jun 2017 18:05:48 +0000
(12:05 -0600)
Reviewed-by: Andreas Dilger <
[email protected]
>
Reviewed-by: Martin K. Petersen <
[email protected]
>
Reviewed-by: Darrick J. Wong <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
fs/xfs/xfs_aops.c
patch
|
blob
|
history
diff --git
a/fs/xfs/xfs_aops.c
b/fs/xfs/xfs_aops.c
index 76b6f988e2fa969103b8e986b1861ab41585867f..81f5bf7f0e72ea2fc4fa40d20cbe6e5000b5df07 100644
(file)
--- a/
fs/xfs/xfs_aops.c
+++ b/
fs/xfs/xfs_aops.c
@@
-506,6
+506,7
@@
xfs_submit_ioend(
return status;
}
+ ioend->io_bio->bi_write_hint = ioend->io_inode->i_write_hint;
submit_bio(ioend->io_bio);
return 0;
}
@@
-565,6
+566,7
@@
xfs_chain_bio(
bio_chain(ioend->io_bio, new);
bio_get(ioend->io_bio); /* for xfs_destroy_ioend */
ioend->io_bio->bi_opf = REQ_OP_WRITE | wbc_to_write_flags(wbc);
+ ioend->io_bio->bi_write_hint = ioend->io_inode->i_write_hint;
submit_bio(ioend->io_bio);
ioend->io_bio = new;
}