diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-10-23 23:18:16 -0600 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-11-15 14:44:31 +0100 |
commit | f82b735936ffd58b6711cf1f1054616517d8ffcd (patch) | |
tree | b4ad8e86330ccee60b085882d187bd4899010efa /fs/btrfs/extent_io.c | |
parent | d28e649a5c58b779b303c252c66ee84a0f2c3b32 (diff) | |
download | lwn-f82b735936ffd58b6711cf1f1054616517d8ffcd.tar.gz lwn-f82b735936ffd58b6711cf1f1054616517d8ffcd.zip |
Btrfs: add write_flags for compression bio
Compression code path has only flaged bios with REQ_OP_WRITE no matter
where the bios come from, but it could be a sync write if fsync starts
this writeback or a normal writeback write if wb kthread starts a
periodic writeback.
It breaks the rule that sync writes and writeback writes need to be
differentiated from each other, because from the POV of block layer,
all bios need to be recognized by these flags in order to do some
management, e.g. throttlling.
This passes writeback_control to compression write path so that it can
send bios with proper flags to block layer.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index dd941885b9c3..1dfd14678db8 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -3252,7 +3252,7 @@ static noinline_for_stack int writepage_delalloc(struct inode *inode, delalloc_start, delalloc_end, &page_started, - nr_written); + nr_written, wbc); /* File system has been set read-only */ if (ret) { SetPageError(page); |