Whamcloud - gitweb
LU-5509 osd: get PFID from linkEA for remote dir on ldiskfs
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_scrub.c
index edffbe4..518f593 100644 (file)
@@ -903,6 +903,12 @@ static int osd_iit_iget(struct osd_thread_info *info, struct osd_device *dev,
        int           rc;
        ENTRY;
 
+       /* Not handle the backend root object and agent parent object.
+        * They are neither visible to namespace nor have OI mappings. */
+       if (unlikely(pos == osd_sb(dev)->s_root->d_inode->i_ino ||
+                    pos == osd_remote_parent_ino(dev)))
+               RETURN(SCRUB_NEXT_CONTINUE);
+
        osd_id_gen(lid, pos, OSD_OII_NOGEN);
        inode = osd_iget(info, dev, lid);
        if (IS_ERR(inode)) {