lustre: llite: change top kobject for llite into a kset
PATCH v2 5/38 lustre: llite: change top kobject for llite into a kset
Currently the top of the sysfs tree for llite is represented by a kobject and each mount instance a kset. Change the top object into a kset and each mount instance into a kobject instead. The reason for this change is in the future lustre_kobj will be changed into a kset and you can't layer two ksets.
Signed-off-by James Simmons <[email protected]>
WC-bug-id: https://jira.whamcloud.com/browse/LU-8066
Reviewed-on: https://review.whamcloud.com/24031
Reviewed-by Bobi Jam <[email protected]>
Reviewed-by Andreas Dilger <[email protected]>
Reviewed-by Oleg Drokin <[email protected]>
Signed-off-by James Simmons <[email protected]>
---
Changelog)
v1) Initial patch
v2) fstype no longer needs to use kobject
.../staging/lustre/lustre/llite/llite_internal.h | 2 +- drivers/staging/lustre/lustre/llite/lproc_llite.c | 112 +++++++++++++-------- 2 files changed, 71 insertions(+), 43 deletions(-)
drivers/staging/lustre/lustre/llite/llite_internal.h +1 -1
@@ -523,7 +523,7 @@ struct ll_sb_info {struct path ll_mnt;__kernel_fsid_t ll_fsid; -struct kobject ll_kobj;/* sysfs object */ +struct kset ll_kset;/* sysfs object */ struct completion ll_kobj_unregister; };
drivers/staging/lustre/lustre/llite/lproc_llite.c +70 -42
348 lines not on this page · raw message
Signature · 1 line
1.8.3.1