/* These are distinct checks because future versions of the file system will want to have a trailing dirent structure independent of indexing.  */
static int ocfs2_supports_dir_trailer(struct inode *dir)
/* These are distinct checks because future versions of the file system will want to have a trailing dirent structure independent of indexing.  */
static int ocfs2_supports_dir_trailer(struct inode *dir)
{
	struct ocfs2_super *osb = OCFS2_SB(dir->i_sb);
	if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL)
		return 0;
	return ocfs2_meta_ecc(osb) || ocfs2_dir_indexed(dir);
}