Commit
e783bbff accidentally renamed a sysfs variable when moving.
Change the sysfs file to it proper name
Test-Parameters: trivial testlist=replay-vbr
Change-Id: I56e0534506271cf6760f775a9c8fa99b12683861
Fixes:
e783bbff ("LU-8066 mdd: migrate from proc to sysfs")
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/35851
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
}
LUSTRE_RW_ATTR(changelog_deniednext);
}
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);
{
struct mdd_device *mdd = container_of(kobj, struct mdd_device,
mdd_kobj);
return sprintf(buf, "%d\n", mdd->mdd_sync_permission);
}
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);
{
struct mdd_device *mdd = container_of(kobj, struct mdd_device,
mdd_kobj);
-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)
static ssize_t lfsck_speed_limit_show(struct kobject *kobj,
struct attribute *attr, char *buf)
&lustre_attr_changelog_deniednext.attr,
&lustre_attr_lfsck_async_windows.attr,
&lustre_attr_lfsck_speed_limit.attr,
&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,