Btrfs: use the new helper wbc_to_write_flags
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 25 Aug 2017 00:19:48 +0000 (18:19 -0600)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Sep 2017 12:48:14 +0000 (14:48 +0200)
commitff40adf7fbdff96860b1153332c0b1c7bab6e0c1
tree1d4dab82592fbe67b656e41c401d860efc6fd618
parentdb95c876c568cef951fbbd4c0118cb5386e4bb99
Btrfs: use the new helper wbc_to_write_flags

This updates btrfs to use the helper wbc_to_write_flags which has been
applied in ext4/xfs/f2fs/block.

Please note that, with this, btrfs's dirty pages written by a
writeback job will carry the flag REQ_BACKGROUND, which is currently
used by writeback-throttle to determine whether it should go to get a
request or wait.

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>
fs/btrfs/extent_io.c