/* I don't like the way this function's name looks next to ocfs2_journal_access_path(), but I don't have a better one.  */
int ocfs2_path_bh_journal_access(handle_t *handle, struct ocfs2_caching_info *ci, struct ocfs2_path *path, int idx)
/* I don't like the way this function's name looks next to ocfs2_journal_access_path(), but I don't have a better one.  */
int ocfs2_path_bh_journal_access(handle_t *handle, struct ocfs2_caching_info *ci, struct ocfs2_path *path, int idx)
{
	ocfs2_journal_access_func access = path_root_access(path);
	if (!access)
		access = ocfs2_journal_access;
	if (idx)
		access = ocfs2_journal_access_eb;
	return access(handle, ci, path->p_node[idx].bh,
		      OCFS2_JOURNAL_ACCESS_WRITE);
}