Skip to contentSkip to conversation

lustre: llite: change top kobject for llite into a kset

PATCH New James Simmons 1 participant 1 message Aug 20, 2018 Staging

lore
Share & tools
lore
#0 lore raw

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.

WC-bug-id: https://jira.whamcloud.com/browse/LU-8066
Reviewed-on: https://review.whamcloud.com/24031

---
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
index 92dc05d..5577407 100644
@@ -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