/* Note that this function occupies KM_USER0 if @atomic != 0.  */
void* generic_pipe_buf_map(struct pipe_inode_info *pipe, struct pipe_buffer *buf, int atomic)
/* Note that this function occupies KM_USER0 if @atomic != 0.  */
void* generic_pipe_buf_map(struct pipe_inode_info *pipe, struct pipe_buffer *buf, int atomic)
{
	if (atomic) {
		buf->flags |= PIPE_BUF_FLAG_ATOMIC;
		return kmap_atomic(buf->page, KM_USER0);
	}
	return kmap(buf->page);
}