From: James Simmons Date: Wed, 21 Aug 2019 20:16:13 +0000 (-0400) Subject: LU-12671 mdd: rename mdd/sync_perm to sync_permissions X-Git-Tag: 2.12.4-RC1~38 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F37006%2F2;p=fs%2Flustre-release.git LU-12671 mdd: rename mdd/sync_perm to sync_permissions Commit e783bbff accidentally renamed a sysfs variable when moving. Change the sysfs file to it proper name Test-Parameters: trivial testlist=replay-vbr Lustre-change: https://review.whamcloud.com/35851 Lustre-commit: 55a7e2dcecaf482c40840840db2b0b795bad2bb9 Change-Id: I56e0534506271cf6760f775a9c8fa99b12683861 Signed-off-by: James Simmons Reviewed-by: Shaun Tancheff Reviewed-by: Arshad Hussain Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/37006 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/mdd/mdd_lproc.c b/lustre/mdd/mdd_lproc.c index fe3ddaa..1c5c1e0 100644 --- a/lustre/mdd/mdd_lproc.c +++ b/lustre/mdd/mdd_lproc.c @@ -430,8 +430,8 @@ static ssize_t changelog_deniednext_store(struct kobject *kobj, } LUSTRE_RW_ATTR(changelog_deniednext); -static ssize_t sync_perm_show(struct kobject *kobj, struct attribute *attr, - char *buf) +static ssize_t sync_permission_show(struct kobject *kobj, + struct attribute *attr, char *buf) { struct mdd_device *mdd = container_of(kobj, struct mdd_device, mdd_kobj); @@ -439,8 +439,9 @@ static ssize_t sync_perm_show(struct kobject *kobj, struct attribute *attr, return sprintf(buf, "%d\n", mdd->mdd_sync_permission); } -static ssize_t sync_perm_store(struct kobject *kobj, struct attribute *attr, - const char *buffer, size_t count) +static ssize_t sync_permission_store(struct kobject *kobj, + struct attribute *attr, + const char *buffer, size_t count) { struct mdd_device *mdd = container_of(kobj, struct mdd_device, mdd_kobj); @@ -455,7 +456,7 @@ static ssize_t sync_perm_store(struct kobject *kobj, struct attribute *attr, return count; } -LUSTRE_RW_ATTR(sync_perm); +LUSTRE_RW_ATTR(sync_permission); static ssize_t lfsck_speed_limit_show(struct kobject *kobj, struct attribute *attr, char *buf) @@ -556,7 +557,7 @@ static struct attribute *mdd_attrs[] = { &lustre_attr_changelog_deniednext.attr, &lustre_attr_lfsck_async_windows.attr, &lustre_attr_lfsck_speed_limit.attr, - &lustre_attr_sync_perm.attr, + &lustre_attr_sync_permission.attr, NULL, };