Whamcloud - gitweb
LU-16413 osd-ldiskfs: fix T10PI for CentOS 8.x
[fs/lustre-release.git] / lustre / ofd / lproc_ofd.c
index f24bb16..7f65e98 100644 (file)
@@ -489,7 +489,8 @@ static int ofd_checksum_type_seq_show(struct seq_file *m, void *data)
        lut = obd2obt(obd)->obt_lut;
        /* select fastest checksum type on the server */
        pref = obd_cksum_type_select(obd->obd_name,
-                                    lut->lut_cksum_types_supported, 0);
+                                    lut->lut_cksum_types_supported,
+                                    lut->lut_dt_conf.ddp_t10_cksum_type);
 
        for (i = 0; i < ARRAY_SIZE(cksum_name); i++) {
                if ((BIT(i) & lut->lut_cksum_types_supported) == 0)