OSDN Git Service

btrfs: Perform locking/unlocking in btrfs_remap_file_range()
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 25 Feb 2019 19:07:44 +0000 (13:07 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:29 +0000 (19:02 +0200)
commit7984ae52bbf75def1d7fcbf4c902e8f787e1ef9d
tree45d7ce0837feaf9e8d855e2dda3b3868ffe1856d
parent290342f66108638048997b71393f0dd88e771352
btrfs: Perform locking/unlocking in btrfs_remap_file_range()

Move code to make it more readable, so as locking and unlocking is
done in the same function. The generic checks that are now performed in
the locked section are unaffected.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c