/* Convenience function to journal all components in a path.  */
int ocfs2_journal_access_path(struct ocfs2_caching_info *ci, handle_t *handle, struct ocfs2_path *path)
/* Convenience function to journal all components in a path.  */
int ocfs2_journal_access_path(struct ocfs2_caching_info *ci, handle_t *handle, struct ocfs2_path *path)
{
	int i, ret = 0;
	if (!path)
		goto out;
	for(i = 0; i < path_num_items(path); i++) {
		ret = ocfs2_path_bh_journal_access(handle, ci, path, i);
		if (ret < 0) {
			mlog_errno(ret);
			goto out;
		}
	}
out:
	return ret;
}