ploop: move discard_* attributes in the tune_attributes group

Submitted by Andrei Vagin on Feb. 27, 2018, 10:27 p.m.

Details

Message ID 1519770424-25056-1-git-send-email-avagin@openvz.org
State New
Series "ploop: move discard_* attributes in the tune_attributes group"
Headers show

Commit Message

Andrei Vagin Feb. 27, 2018, 10:27 p.m.
state_attributes contains only readonly attrebutes,
all read-write attributes are in tune_attributes.

Reported-by: Konstantin Khorenko <khorenko@virtuozzo.com>
---
 drivers/block/ploop/sysfs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/block/ploop/sysfs.c b/drivers/block/ploop/sysfs.c
index 835558a..4899837 100644
--- a/drivers/block/ploop/sysfs.c
+++ b/drivers/block/ploop/sysfs.c
@@ -595,9 +595,6 @@  static struct attribute *state_attributes[] = {
 	_A(blockable_reqs),
 	_A(blocked_bios),
 	_A(freeze_state),
-	_A2(discard_granularity),
-	_A2(discard_alignment),
-	_A2(discard_zeroes_data),
 	NULL
 };
 
@@ -619,6 +616,9 @@  static struct attribute *tune_attributes[] = {
 	_A2(congestion_low_watermark),
 	_A2(max_active_requests),
 	_A2(push_backup_timeout),
+	_A2(discard_granularity),
+	_A2(discard_alignment),
+	_A2(discard_zeroes_data),
 	NULL
 };