diff options
| author | Anand Jain <[email protected]> | 2015-08-14 10:32:59 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2015-10-01 15:37:34 +0000 |
| commit | 12b1c2637b6e0763121648d637ffe603b422e986 (patch) | |
| tree | 92f6954c4e22915f07e481af9d1574a97b897ae6 /fs/btrfs/dev-replace.c | |
| parent | Btrfs: add btrfs_read_dev_one_super() to read one specific SB (diff) | |
| download | kernel-12b1c2637b6e0763121648d637ffe603b422e986.tar.gz kernel-12b1c2637b6e0763121648d637ffe603b422e986.zip | |
Btrfs: enhance btrfs_scratch_superblock to scratch all superblocks
This patch updates and renames btrfs_scratch_superblocks, (which is used
by the replace device thread), with those fixes from the scratch
superblock code section of btrfs_rm_device(). The fixes are:
Scratch all copies of superblock
Notify kobject that superblock has been changed
Update time on the device
So that btrfs_rm_device() can use the function
btrfs_scratch_superblocks() instead of its own scratch code. And further
replace deivce code which similarly releases device back to the system,
will have the fixes from the btrfs device delete.
Signed-off-by: Anand Jain <[email protected]>
[renamed to btrfs_scratch_superblock]
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
