+static inline int md_should_create(u64 open_flags)
+{
+ return !(open_flags & MDS_OPEN_DELAY_CREATE) &&
+ (open_flags & MDS_FMODE_WRITE) &&
+ !(open_flags & MDS_OPEN_LEASE);
+}
+
+/* do NOT or the MAY_*'s, you'll get the weakest */
+static inline int mds_accmode(u64 open_flags)