Skip to contentSkip to conversation

Patch "btrfs: store and load values of stripes_min/stripes_max in balance status item" has been added to the 4.9-stable tree

PATCH [email protected] 1 participant 1 message Jan 3, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

btrfs: store and load values of stripes_min/stripes_max in balance status item

to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
btrfs-store-and-load-values-of-stripes_min-stripes_max-in-balance-status-item.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From ed0df618b1b06d7431ee4d985317fc5419a5d559 Mon Sep 17 00:00:00 2001

From: David Sterba <[email protected]>
Date: Tue, 1 Nov 2016 14:21:23 +0100
Subject: btrfs: store and load values of stripes_min/stripes_max in balance status item

From: David Sterba <[email protected]>

commit ed0df618b1b06d7431ee4d985317fc5419a5d559 upstream.

The balance status item contains currently known filter values, but the stripes filter was unintentionally not among them. This would mean, that interrupted and automatically restarted balance does not apply the stripe filters.

Fixes dee32d0ac3719ef8d640efaf0884111df444730f
---
 fs/btrfs/ctree.h |    4 ++++
 1 file changed, 4 insertions(+)
fs/btrfs/ctree.h +4 -0
@@ -2210,6 +2210,8 @@ btrfs_disk_balance_args_to_cpu(struct bt
 	cpu->target = le64_to_cpu(disk->target);
 	cpu->flags = le64_to_cpu(disk->flags);
 	cpu->limit = le64_to_cpu(disk->limit);
+	cpu->stripes_min = le32_to_cpu(disk->stripes_min);
+	cpu->stripes_max = le32_to_cpu(disk->stripes_max);
 }
 
 static inline void
@@ -2228,6 +2230,8 @@ btrfs_cpu_balance_args_to_disk(struct bt
 	disk->target = cpu_to_le64(cpu->target);
 	disk->flags = cpu_to_le64(cpu->flags);
 	disk->limit = cpu_to_le64(cpu->limit);
+	disk->stripes_min = cpu_to_le32(cpu->stripes_min);
+	disk->stripes_max = cpu_to_le32(cpu->stripes_max);
 }
 
 /* struct btrfs_super_block */

Patches currently in stable-queue which might be from [email protected] are

queue-4.9/btrfs-fix-qgroup-rescan-worker-initialization.patch queue-4.9/btrfs-store-and-load-values-of-stripes_min-stripes_max-in-balance-status-item.patch