Whamcloud - gitweb
LU-16831 lod: replace (__u16)-1 with LOV_ALL_STRIPES
[fs/lustre-release.git] / lustre / include / uapi / linux / lustre / lustre_user.h
index 3e0e3ba..30ded1f 100644 (file)
@@ -1023,7 +1023,7 @@ struct lov_comp_md_v1 {
 
 static inline __u32 lov_user_md_size(__u16 stripes, __u32 lmm_magic)
 {
-       if (stripes == (__u16)-1)
+       if (stripes == LOV_ALL_STRIPES)
                stripes = 0;
 
        if (lmm_magic == LOV_USER_MAGIC_V1)