/* "new' here refers to the point at which we're creating a new
directory via "mkdir()", but also when we're expanding an inline directory. In either case, we don't yet have the indexing bit set on the directory, so the standard checks will fail in when metaecc is turned off. Only directory-initialization type functions should use this then. Everything else wants ocfs2_supports_dir_trailer()  */
static int ocfs2_new_dir_wants_trailer(struct inode *dir)
/* "new' here refers to the point at which we're creating a new
directory via "mkdir()", but also when we're expanding an inline directory. In either case, we don't yet have the indexing bit set on the directory, so the standard checks will fail in when metaecc is turned off. Only directory-initialization type functions should use this then. Everything else wants ocfs2_supports_dir_trailer()  */
static int ocfs2_new_dir_wants_trailer(struct inode *dir)
{
	struct ocfs2_super *osb = OCFS2_SB(dir->i_sb);
	return ocfs2_meta_ecc(osb) ||
		ocfs2_supports_indexed_dirs(osb);
}