X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosd-zfs%2Fosd_index.c;h=a6f0dd3d485f91a3cba8d97ac9d8e9f21844c419;hp=29b0d682fd3e930ac60e6c4c959ce56e36e6bb57;hb=519a65ddc04673022124f421e4809f8a87f790d7;hpb=491eb747915eb7fbde1babb2689b657fca6f1be1 diff --git a/lustre/osd-zfs/osd_index.c b/lustre/osd-zfs/osd_index.c index 29b0d68..a6f0dd3 100644 --- a/lustre/osd-zfs/osd_index.c +++ b/lustre/osd-zfs/osd_index.c @@ -472,8 +472,8 @@ static inline void osd_object_put(const struct lu_env *env, lu_object_put(env, &obj->oo_dt.do_lu); } -static int osd_mdt_seq_exists(const struct lu_env *env, struct osd_device *osd, - obd_seq seq) +static int osd_seq_exists(const struct lu_env *env, struct osd_device *osd, + obd_seq seq) { struct lu_seq_range *range = &osd_oti_get(env)->oti_seq_range; struct seq_server_site *ss = osd_seq_site(osd); @@ -483,10 +483,6 @@ static int osd_mdt_seq_exists(const struct lu_env *env, struct osd_device *osd, if (ss == NULL) RETURN(1); - /* XXX: currently, each MDT only store avaible sequence on disk, - * and no allocated sequences information on disk, so it has to - * lookup FLDB. It probably makes more sense also store allocated - * sequence locally, so we do not need do remote FLDB lookup in OSD */ rc = osd_fld_lookup(env, osd, seq, range); if (rc != 0) { CERROR("%s: Can not lookup fld for "LPX64"\n", @@ -505,8 +501,7 @@ static int osd_remote_fid(const struct lu_env *env, struct osd_device *osd, if (!fid_is_norm(fid) && !fid_is_root(fid)) RETURN(0); - /* Currently, it only used to check FID on MDT */ - if (osd_mdt_seq_exists(env, osd, fid_seq(fid))) + if (osd_seq_exists(env, osd, fid_seq(fid))) RETURN(0); RETURN(1);