X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flod%2Flod_internal.h;h=78ec18858cdaebccf7a6c86c8d8c73d5b62da04d;hp=bdab936aee1719fe2651e6d3118fd61582d5017c;hb=c23c68a52a04369101db2bd3b1d3da23025fcf48;hpb=ec4126dcee97eab9a377899221c05d3e15746ebf diff --git a/lustre/lod/lod_internal.h b/lustre/lod/lod_internal.h index bdab936..78ec188 100644 --- a/lustre/lod/lod_internal.h +++ b/lustre/lod/lod_internal.h @@ -207,27 +207,6 @@ struct lod_default_striping { lds_dir_def_striping_set:1; }; -static inline __u8 lmv_inherit_next(__u8 inherit) -{ - if (inherit == LMV_INHERIT_END || inherit == LMV_INHERIT_NONE) - return LMV_INHERIT_NONE; - - if (inherit == LMV_INHERIT_UNLIMITED || inherit > LMV_INHERIT_MAX) - return inherit; - - return inherit - 1; -} - -static inline __u8 lmv_inherit_rr_next(__u8 inherit_rr) -{ - if (inherit_rr == LMV_INHERIT_RR_NONE || - inherit_rr == LMV_INHERIT_RR_UNLIMITED || - inherit_rr > LMV_INHERIT_RR_MAX) - return inherit_rr; - - return inherit_rr - 1; -} - enum layout_verify_flags { LVF_ALL_STALE = BIT(0), /* check not all stale mirrors */ };