]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[GFS2] gfs2 __user misannotation fix
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Oct 2006 03:49:23 +0000 (23:49 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Nov 2006 15:33:49 +0000 (10:33 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_file.c

index 359965c368bff066cfba6f5ab49a391404d2bd9c..2fc8868e065c995150b3d86ec7a2449bfb793563 100644 (file)
@@ -71,7 +71,7 @@ static int gfs2_read_actor(read_descriptor_t *desc, struct page *page,
                size = count;
 
        kaddr = kmap(page);
-       memcpy(desc->arg.buf, kaddr + offset, size);
+       memcpy(desc->arg.data, kaddr + offset, size);
        kunmap(page);
 
        desc->count = count - size;
@@ -86,7 +86,7 @@ int gfs2_internal_read(struct gfs2_inode *ip, struct file_ra_state *ra_state,
        struct inode *inode = &ip->i_inode;
        read_descriptor_t desc;
        desc.written = 0;
-       desc.arg.buf = buf;
+       desc.arg.data = buf;
        desc.count = size;
        desc.error = 0;
        do_generic_mapping_read(inode->i_mapping, ra_state,