Whamcloud - gitweb
LU-10391 lnet: convert LNetGetID to return an large-addr pid
[fs/lustre-release.git] / lustre / llite / llite_lib.c
index ccdcc8c..e11d023 100644 (file)
@@ -3525,7 +3525,7 @@ void ll_compute_rootsquash_state(struct ll_sb_info *sbi)
        struct root_squash_info *squash = &sbi->ll_squash;
        int i;
        bool matched;
-       struct lnet_process_id id;
+       struct lnet_processid id;
 
        /* Update norootsquash flag */
        spin_lock(&squash->rsi_lock);
@@ -3537,9 +3537,10 @@ void ll_compute_rootsquash_state(struct ll_sb_info *sbi)
                matched = false;
                i = 0;
                while (LNetGetId(i++, &id) != -ENOENT) {
-                       if (id.nid == LNET_NID_LO_0)
+                       if (nid_is_lo0(&id.nid))
                                continue;
-                       if (cfs_match_nid(id.nid, &squash->rsi_nosquash_nids)) {
+                       if (cfs_match_nid(lnet_nid_to_nid4(&id.nid),
+                                         &squash->rsi_nosquash_nids)) {
                                matched = true;
                                break;
                        }