char *osd_lf_fid2name(const struct lu_fid *fid);
int osd_scrub_start(const struct lu_env *env, struct osd_device *dev,
__u32 flags);
+void osd_scrub_stop(struct osd_device *dev);
int osd_scrub_setup(const struct lu_env *env, struct osd_device *dev);
void osd_scrub_cleanup(const struct lu_env *env, struct osd_device *dev);
int osd_oii_insert(struct osd_device *dev, struct osd_idmap_cache *oic,
if (unlikely(fid_is_last_id(fid)))
return osd_obj_spec_lookup(info, osd, fid, id);
- if (fid_is_on_ost(info, osd, fid, flags) || fid_is_llog(fid))
+ if (fid_is_llog(fid) || fid_is_on_ost(info, osd, fid, flags))
return osd_obj_map_lookup(info, osd, fid, id);
if (unlikely(fid_is_last_id(fid)))
return osd_obj_spec_insert(info, osd, fid, id, th);
- if (fid_is_on_ost(info, osd, fid, flags) || fid_is_llog(fid))
+ if (fid_is_llog(fid) || fid_is_on_ost(info, osd, fid, flags))
return osd_obj_map_insert(info, osd, fid, id, th);
fid_cpu_to_be(oi_fid, fid);
if (fid_is_last_id(fid))
return 0;
- if (fid_is_on_ost(info, osd, fid, flags) || fid_is_llog(fid))
+ if (fid_is_llog(fid) || fid_is_on_ost(info, osd, fid, flags))
return osd_obj_map_delete(info, osd, fid, th);
fid_cpu_to_be(oi_fid, fid);
if (unlikely(fid_is_last_id(fid)))
return osd_obj_spec_update(info, osd, fid, id, th);
- if (fid_is_on_ost(info, osd, fid, flags) || fid_is_llog(fid))
+ if (fid_is_llog(fid) || fid_is_on_ost(info, osd, fid, flags))
return osd_obj_map_update(info, osd, fid, id, th);
fid_cpu_to_be(oi_fid, fid);
void osd_scrub_cleanup(const struct lu_env *env, struct osd_device *dev);
int osd_scrub_start(const struct lu_env *env, struct osd_device *dev,
__u32 flags);
+void osd_scrub_stop(struct osd_device *dev);
int osd_oii_insert(const struct lu_env *env, struct osd_device *dev,
const struct lu_fid *fid, uint64_t oid, bool insert);
int osd_oii_lookup(struct osd_device *dev, const struct lu_fid *fid,
if (zdn != NULL)
*zdn = NULL;
- if (fid_is_on_ost(env, osd, fid) == 1 || fid_seq(fid) == FID_SEQ_ECHO) {
+ if (fid_is_echo(fid) || fid_is_on_ost(env, osd, fid)) {
zapid = osd_get_idx_for_ost_obj_compat(env, osd, fid,
buf, bufsize);
} else if (unlikely(fid_seq(fid) == FID_SEQ_LOCAL_FILE)) {
if (zdn != NULL)
*zdn = NULL;
- if (fid_is_on_ost(env, osd, fid) == 1 || fid_seq(fid) == FID_SEQ_ECHO ||
- fid_is_last_id(fid)) {
+ if (fid_is_echo(fid) || fid_is_last_id(fid) ||
+ fid_is_on_ost(env, osd, fid)) {
zapid = osd_get_idx_for_ost_obj(env, osd, fid, buf, bufsize);
} else if (unlikely(fid_seq(fid) == FID_SEQ_LOCAL_FILE)) {
/* special objects with fixed known fids get their name */