mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
btrfs: dev-replace: remove unused members of btrfs_dev_replace
Lock owner and nesting level have been unused since day 1, probably copy&pasted from the extent_buffer locking scheme without much thinking. The locking of device replace is simpler and does not need any lock nesting. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
e17385ca29
commit
e9539cff04
2 changed files with 0 additions and 4 deletions
|
@ -365,8 +365,6 @@ struct btrfs_dev_replace {
|
||||||
struct btrfs_device *srcdev;
|
struct btrfs_device *srcdev;
|
||||||
struct btrfs_device *tgtdev;
|
struct btrfs_device *tgtdev;
|
||||||
|
|
||||||
pid_t lock_owner;
|
|
||||||
atomic_t nesting_level;
|
|
||||||
struct mutex lock_finishing_cancel_unmount;
|
struct mutex lock_finishing_cancel_unmount;
|
||||||
rwlock_t lock;
|
rwlock_t lock;
|
||||||
atomic_t read_locks;
|
atomic_t read_locks;
|
||||||
|
|
|
@ -2154,8 +2154,6 @@ static void btrfs_init_btree_inode(struct btrfs_fs_info *fs_info)
|
||||||
|
|
||||||
static void btrfs_init_dev_replace_locks(struct btrfs_fs_info *fs_info)
|
static void btrfs_init_dev_replace_locks(struct btrfs_fs_info *fs_info)
|
||||||
{
|
{
|
||||||
fs_info->dev_replace.lock_owner = 0;
|
|
||||||
atomic_set(&fs_info->dev_replace.nesting_level, 0);
|
|
||||||
mutex_init(&fs_info->dev_replace.lock_finishing_cancel_unmount);
|
mutex_init(&fs_info->dev_replace.lock_finishing_cancel_unmount);
|
||||||
rwlock_init(&fs_info->dev_replace.lock);
|
rwlock_init(&fs_info->dev_replace.lock);
|
||||||
atomic_set(&fs_info->dev_replace.read_locks, 0);
|
atomic_set(&fs_info->dev_replace.read_locks, 0);
|
||||||
|
|
Loading…
Reference in a new issue