diff options
author | Nikolay Borisov <[email protected]> | 2017-08-03 15:44:58 +0300 |
---|---|---|
committer | David Sterba <[email protected]> | 2017-08-18 16:36:29 +0200 |
commit | e6961cac730f62d9b07efb53835c4eb5ed407bde (patch) | |
tree | b030a49f2579d4a01c65d6feb070518b0d3bcd1f /fs/btrfs/extent_io.c | |
parent | 6399fb5a0b69a9cc73aa84767954366d867b145d (diff) |
btrfs: Move skip checksum check from btrfs_submit_direct to __btrfs_submit_dio_bio
Currently the code checks whether we should do data checksumming in
btrfs_submit_direct and the boolean result of this check is passed to
btrfs_submit_direct_hook, in turn passing it to __btrfs_submit_dio_bio which
actually consumes it. The last function actually has all the necessary context
to figure out whether to skip the check or not, so let's move the check closer
to where it's being consumed. No functional changes.
Signed-off-by: Nikolay Borisov <[email protected]>
Reviewed-by: Chris Mason <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/extent_io.c')
0 files changed, 0 insertions, 0 deletions