Skip to content

Commit

Permalink
ocfs2: bad kunmap_atomic()
Browse files Browse the repository at this point in the history
kunmap_atomic() takes the virtual address, not the mapped page as
argument.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Jul 24, 2007
1 parent 2f66b52 commit 3836df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2153,7 +2153,7 @@ static int ocfs2_splice_write_actor(struct pipe_inode_info *pipe,
src = buf->ops->map(pipe, buf, 1);
dst = kmap_atomic(page, KM_USER1);
memcpy(dst + offset, src + buf->offset, count);
kunmap_atomic(page, KM_USER1);
kunmap_atomic(dst, KM_USER1);
buf->ops->unmap(pipe, buf, src);

copied = ocfs2_write_end(file, file->f_mapping, sd->pos, count, count,
Expand Down

0 comments on commit 3836df6

Please sign in to comment.