summary refs log tree commit diff
path: root/.get_maintainer.ignore
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-05-02 15:19:32 +0300
committerDavid Sterba <dsterba@suse.com>2018-05-30 19:01:43 +0200
commit1c8d0175df47364aa55c568b65ed7a3aee5b9a6d (patch)
treeb7efe4b80688df675a2ecbde7455eed64760463c /.get_maintainer.ignore
parent9132c4ff6f9557db3ba10fb321317b4f67626ee8 (diff)
downloadlinux-1c8d0175df47364aa55c568b65ed7a3aee5b9a6d.tar.gz
btrfs: Factor out read portion of btrfs_get_blocks_direct
Currently this function handles both the READ and WRITE dio cases. This
is facilitated by a bunch of 'if' statements, a goto short-circuit
statement and a very perverse aliasing of "!created"(READ) case
by setting lockstart = lockend and checking for lockstart < lockend for
detecting the write. Let's simplify this mess by extracting the
READ-only code into a separate __btrfs_get_block_direct_read function.
This is only the first step, the next one will be to factor out the
write side as well. The end goal will be to have the common locking/
unlocking code in btrfs_get_blocks_direct and then it will call either
the read|write subvariants. No functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions