diff options
author | Anand Jain <anand.jain@oracle.com> | 2018-05-29 07:28:37 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 14:12:46 +0300 |
commit | 4306a97449f9a0f9e5229af7889d4401315355aa (patch) | |
tree | e235494ba6769ec625db65560f73b877688e9bc5 /fs/btrfs/delayed-ref.h | |
parent | 959b1c04675735aa51b9a7b3e28963c4141bf3e7 (diff) | |
download | linux-4306a97449f9a0f9e5229af7889d4401315355aa.tar.xz |
btrfs: do btrfs_free_stale_devices outside of device_list_add
btrfs_free_stale_devices() looks for device path reused for another
filesystem, and deletes the older fs_devices::device entry.
In preparation to handle locking in device_list_add, move
btrfs_free_stale_devices outside as these two functions serve a
different purpose.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/delayed-ref.h')
0 files changed, 0 insertions, 0 deletions