summaryrefslogtreecommitdiffstats
path: root/include/net/flow_keys.h
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2014-05-13 11:05:06 +0200
committerChris Mason <clm@fb.com>2014-06-10 02:20:50 +0200
commit298658414a2f0bea1f05a81876a45c1cd96aa2e0 (patch)
treedf33ffc840626aeaace2c02f6821035c9a5ddd48 /include/net/flow_keys.h
parentBtrfs: remove OPT_acl parse when acl disabled (diff)
downloadlinux-298658414a2f0bea1f05a81876a45c1cd96aa2e0.tar.xz
linux-298658414a2f0bea1f05a81876a45c1cd96aa2e0.zip
Btrfs: set right total device count for seeding support
Seeding device support allows us to create a new filesystem based on existed filesystem. However newly created filesystem's @total_devices should include seed devices. This patch fix the following problem: # mkfs.btrfs -f /dev/sdb # btrfstune -S 1 /dev/sdb # mount /dev/sdb /mnt # btrfs device add -f /dev/sdc /mnt --->fs_devices->total_devices = 1 # umount /mnt # mount /dev/sdc /mnt --->fs_devices->total_devices = 2 This is because we record right @total_devices in superblock, but @fs_devices->total_devices is reset to be 0 in btrfs_prepare_sprout(). Fix this problem by not resetting @fs_devices->total_devices. Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'include/net/flow_keys.h')
0 files changed, 0 insertions, 0 deletions