summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/meta_io.c
diff options
context:
space:
mode:
authorSteven Whitehouse2014-03-31 18:48:27 +0200
committerSteven Whitehouse2014-03-31 18:48:27 +0200
commit1b2ad41214c9bf6e8befa000f0522629194bf540 (patch)
treeca9bfdbbabf9aa50e81565c643a8849789a69949 /fs/gfs2/meta_io.c
parentGFS2: Fix uninitialized VFS inode in gfs2_create_inode (diff)
downloadkernel-qcow2-linux-1b2ad41214c9bf6e8befa000f0522629194bf540.tar.gz
kernel-qcow2-linux-1b2ad41214c9bf6e8befa000f0522629194bf540.tar.xz
kernel-qcow2-linux-1b2ad41214c9bf6e8befa000f0522629194bf540.zip
GFS2: Fix address space from page function
Now that rgrps use the address space which is part of the super block, we need to update gfs2_mapping2sbd() to take account of that. The only way to do that easily is to use a different set of address_space_operations for rgrps. Reported-by: Abhi Das <adas@redhat.com> Tested-by: Abhi Das <adas@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/meta_io.c')
-rw-r--r--fs/gfs2/meta_io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c
index 005e4686af0d..2cf09b63a6b4 100644
--- a/fs/gfs2/meta_io.c
+++ b/fs/gfs2/meta_io.c
@@ -97,6 +97,11 @@ const struct address_space_operations gfs2_meta_aops = {
.releasepage = gfs2_releasepage,
};
+const struct address_space_operations gfs2_rgrp_aops = {
+ .writepage = gfs2_aspace_writepage,
+ .releasepage = gfs2_releasepage,
+};
+
/**
* gfs2_getbuf - Get a buffer with a given address space
* @gl: the glock