X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosd-zfs%2Fosd_index.c;h=51db373bb082a0c6a9035febecddfa9af9902d43;hp=1e7c441de12197b857db87baedaf3940924fd4be;hb=76f0977b7ea5d46836cb459deb7b9ad9e781d585;hpb=32a11dbd310b44d2a6e084c48310f21ef6649145 diff --git a/lustre/osd-zfs/osd_index.c b/lustre/osd-zfs/osd_index.c index 1e7c441..51db373 100644 --- a/lustre/osd-zfs/osd_index.c +++ b/lustre/osd-zfs/osd_index.c @@ -498,7 +498,8 @@ static int osd_remote_fid(const struct lu_env *env, struct osd_device *osd, { ENTRY; - if (!fid_is_norm(fid) && !fid_is_root(fid)) + /* FID seqs not in FLDB, must be local seq */ + if (unlikely(!fid_seq_in_fldb(fid_seq(fid)))) RETURN(0); if (osd_seq_exists(env, osd, fid_seq(fid)))