summaryrefslogtreecommitdiff
path: root/fs/gfs2/super.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-07-28 00:37:48 +0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-07-28 00:37:48 +0400
commit2b98a54f796f701604737abd9c2017948e9e010b (patch)
tree366b18569e104d845685c53078816714fa06191f /fs/gfs2/super.c
parentdd894be8df11ea40a1163b75596ab85d558816c8 (diff)
downloadlinux-2b98a54f796f701604737abd9c2017948e9e010b.tar.xz
[GFS2] Fix bug in super block reading code
This gets the argument to submit_bio() correct. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r--fs/gfs2/super.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index 48fd4cb49c1e..3c318a9e8a8c 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -167,6 +167,8 @@ static int end_bio_io_page(struct bio *bio, unsigned int bytes_done, int error)
if (!error)
SetPageUptodate(page);
+ else
+ printk(KERN_WARNING "gfs2: error %d reading superblock\n", error);
unlock_page(page);
return 0;
}
@@ -196,7 +198,7 @@ static struct page *gfs2_read_super(struct super_block *sb, sector_t sector)
bio->bi_end_io = end_bio_io_page;
bio->bi_private = page;
- submit_bio(READ | BIO_RW_SYNC, bio);
+ submit_bio(READ_SYNC, bio);
wait_on_page_locked(page);
bio_put(bio);
if (!PageUptodate(page)) {