Whamcloud - gitweb
LU-6142 mdt: Fix style issues for mdt_recovery.c
[fs/lustre-release.git] / lustre / mdt / mdt_mds.c
index 5699c40..1c06518 100644 (file)
@@ -487,10 +487,10 @@ static int mds_start_ptlrpc_service(struct mds_device *m)
        }
 
 
-       mask = cfs_cpt_nodemask(cfs_cpt_table, CFS_CPT_ANY);
+       mask = cfs_cpt_nodemask(cfs_cpt_tab, CFS_CPT_ANY);
        /* event CPT feature is disabled in libcfs level by set partition
         * number to 1, we still want to set node affinity for io service */
-       if (cfs_cpt_number(cfs_cpt_table) == 1 && nodes_weight(*mask) > 1) {
+       if (cfs_cpt_number(cfs_cpt_tab) == 1 && nodes_weight(*mask) > 1) {
                int cpt = 0;
                int i;
 
@@ -503,8 +503,8 @@ static int mds_start_ptlrpc_service(struct mds_device *m)
 
                        rc = cfs_cpt_set_node(mdt_io_cptable, cpt++, i);
                        if (!rc) {
-                               CWARN("MDS Failed to set node %d for"
-                                     "IO CPT table\n", i);
+                               CWARN("MDS Failed to set node %d for IO CPT table\n",
+                                     i);
                                cfs_cpt_table_free(mdt_io_cptable);
                                mdt_io_cptable = NULL;
                                break;
@@ -567,7 +567,7 @@ err_mds_svc:
 
 static inline struct mds_device *mds_dev(struct lu_device *d)
 {
-       return container_of0(d, struct mds_device, mds_md_dev.md_lu_dev);
+       return container_of_safe(d, struct mds_device, mds_md_dev.md_lu_dev);
 }
 
 static struct lu_device *mds_device_fini(const struct lu_env *env,