fix misannotations in loop.c
PATCH 1/1 fix misannotations in loop.c
Signed-off-by Al Viro <[email protected]>
--- drivers/block/loop.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/block/loop.c +3 -3
@@ -295,7 +295,7 @@ fail:* and do_lo_send_write(). */ static int __do_lo_send_write (struct file *file, -u8 __user *buf,const int len,loff_t pos) +u8 *buf,const int len,loff_t pos) {ssize_t bw;mm_segment_t old_fs =get_fs ();
@@ -324,7 +324,7 @@ static int do_lo_send_direct_write(struc struct bio_vec *bvec, int bsize, loff_t pos, struct page *page) { ssize_t bw = __do_lo_send_write(lo->lo_backing_file, - (u8 __user *)kmap (bvec->bv_page) + bvec->bv_offset, +kmap (bvec->bv_page) + bvec->bv_offset, bvec->bv_len, pos);kunmap (bvec->bv_page);cond_resched ();
@@ -351,7 +351,7 @@ static int do_lo_send_write(struct loop_ bvec->bv_offset, bvec->bv_len, pos >> 9);if (likely (!ret))return __do_lo_send_write (lo->lo_backing_file, - (u8 __user *)page_address (page), bvec->bv_len, +page_address (page), bvec->bv_len, pos);printk (KERN_ERR "loop: Transfer error at byte offset %llu, " "length %i.\n" , (unsigned long long )pos, bvec->bv_len);
Signature · 1 line
1.4.2.GIT