/* XXX: This is executed once on every dirent. We should consider optimizing it.  */
static int ocfs2_skip_dir_trailer(struct inode *dir, struct ocfs2_dir_entry *de, unsigned long offset, unsigned long blklen)
/* XXX: This is executed once on every dirent. We should consider optimizing it.  */
static int ocfs2_skip_dir_trailer(struct inode *dir, struct ocfs2_dir_entry *de, unsigned long offset, unsigned long blklen)
{
	unsigned long toff = blklen - sizeof(struct ocfs2_dir_block_trailer);
	if (!ocfs2_supports_dir_trailer(dir))
		return 0;
	if (offset != toff)
		return 0;
	return 1;
}