Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-14459 mdt: support fixed directory layout
[fs/lustre-release.git]
/
lustre
/
include
/
lustre_lmv.h
diff --git
a/lustre/include/lustre_lmv.h
b/lustre/include/lustre_lmv.h
index
6f302b3
..
abb89a3
100644
(file)
--- a/
lustre/include/lustre_lmv.h
+++ b/
lustre/include/lustre_lmv.h
@@
-504,4
+504,9
@@
static inline bool lmv_is_layout_changing(const struct lmv_mds_md_v1 *lmv)
lmv_hash_is_migrating(cpu_to_le32(lmv->lmv_hash_type));
}
+static inline bool lmv_is_fixed(const struct lmv_mds_md_v1 *lmv)
+{
+ return cpu_to_le32(lmv->lmv_hash_type) & LMV_HASH_FLAG_FIXED;
+}
+
#endif