]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove unused readahead spinlock
authorMatthew Wilcox <mawilcox@microsoft.com>
Wed, 17 Jan 2018 20:21:49 +0000 (12:21 -0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:21 +0000 (16:08 +0100)
commit81785ec067aff3f4b6be114910c69fb00a0ffa37
treedeac9284b8923cd1483d44cf47cfa8a62c6a6e27
parent2eac4b9178b61d243e6cb098c905ef55ddf45ff1
btrfs: Remove unused readahead spinlock

The reada_lock in struct btrfs_device was only initialised, and not
actually used.  That's good because there's another lock also called
reada_lock in the btrfs_fs_info that was quite heavily used.  Remove
this one.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c
fs/btrfs/volumes.h