aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/algos/i2c-algo-bit.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-05-02 15:19:33 +0300
committerDavid Sterba <dsterba@suse.com>2018-05-30 19:01:44 +0200
commitc5794e51784a0a96dd82e8f955570a7eccf27e5d (patch)
tree4415984aa73ae253d024fe7a52eb4cbc85e33448 /drivers/i2c/algos/i2c-algo-bit.c
parent1c8d0175df47364aa55c568b65ed7a3aee5b9a6d (diff)
btrfs: Factor out write portion of btrfs_get_blocks_direct
Now that the read side is extracted into its own function, do the same to the write side. This leaves btrfs_get_blocks_direct_write with the sole purpose of handling common locking required. Also flip the condition in btrfs_get_blocks_direct_write so that the write case comes first and we check for if (Create) rather than if (!create). This is purely subjective but I believe makes reading a bit more "linear". No functional changes. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions