diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2018-01-17 12:21:49 -0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-01-22 16:08:21 +0100 |
commit | 3cbf26da5ec85f1d3177eee534e377c707ed89e1 (patch) | |
tree | deac9284b8923cd1483d44cf47cfa8a62c6a6e27 /fs/btrfs/volumes.c | |
parent | 7583d8d088ff2c323b1d4f15b191ca2c23d32558 (diff) | |
download | talos-obmc-linux-3cbf26da5ec85f1d3177eee534e377c707ed89e1.tar.gz talos-obmc-linux-3cbf26da5ec85f1d3177eee534e377c707ed89e1.zip |
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>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 11fccf2fcb1f..5750cd9df417 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -319,7 +319,6 @@ static struct btrfs_device *__alloc_device(void) spin_lock_init(&dev->io_lock); - spin_lock_init(&dev->reada_lock); atomic_set(&dev->reada_in_flight, 0); atomic_set(&dev->dev_stats_ccnt, 0); btrfs_device_data_ordered_init(dev); |