Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-16120 build: Add support for kobj_type default_groups
[fs/lustre-release.git]
/
lustre
/
ofd
/
lproc_ofd.c
diff --git
a/lustre/ofd/lproc_ofd.c
b/lustre/ofd/lproc_ofd.c
index
32ff9d3
..
f24bb16
100644
(file)
--- a/
lustre/ofd/lproc_ofd.c
+++ b/
lustre/ofd/lproc_ofd.c
@@
-1129,6
+1129,8
@@
static struct attribute *ofd_attrs[] = {
NULL,
};
NULL,
};
+KOBJ_ATTRIBUTE_GROUPS(ofd); /* creates ofd_groups from ofd_attrs */
+
/**
* Initialize all needed procfs entries for OFD device.
*
/**
* Initialize all needed procfs entries for OFD device.
*
@@
-1147,7
+1149,7
@@
int ofd_tunables_init(struct ofd_device *ofd)
/* lprocfs must be setup before the ofd so state can be safely added
* to /proc incrementally as the ofd is setup
*/
/* lprocfs must be setup before the ofd so state can be safely added
* to /proc incrementally as the ofd is setup
*/
- obd->obd_ktype.default_
attrs = ofd_attrs
;
+ obd->obd_ktype.default_
groups = KOBJ_ATTR_GROUPS(ofd)
;
obd->obd_vars = lprocfs_ofd_obd_vars;
rc = lprocfs_obd_setup(obd, false);
if (rc) {
obd->obd_vars = lprocfs_ofd_obd_vars;
rc = lprocfs_obd_setup(obd, false);
if (rc) {