diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-07-27 16:37:48 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-07-27 16:37:48 -0400 |
commit | 2b98a54f796f701604737abd9c2017948e9e010b (patch) | |
tree | 366b18569e104d845685c53078816714fa06191f | |
parent | dd894be8df11ea40a1163b75596ab85d558816c8 (diff) |
[GFS2] Fix bug in super block reading code
This gets the argument to submit_bio() correct.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
-rw-r--r-- | fs/gfs2/super.c | 4 |
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) | |||
167 | 167 | ||
168 | if (!error) | 168 | if (!error) |
169 | SetPageUptodate(page); | 169 | SetPageUptodate(page); |
170 | else | ||
171 | printk(KERN_WARNING "gfs2: error %d reading superblock\n", error); | ||
170 | unlock_page(page); | 172 | unlock_page(page); |
171 | return 0; | 173 | return 0; |
172 | } | 174 | } |
@@ -196,7 +198,7 @@ static struct page *gfs2_read_super(struct super_block *sb, sector_t sector) | |||
196 | 198 | ||
197 | bio->bi_end_io = end_bio_io_page; | 199 | bio->bi_end_io = end_bio_io_page; |
198 | bio->bi_private = page; | 200 | bio->bi_private = page; |
199 | submit_bio(READ | BIO_RW_SYNC, bio); | 201 | submit_bio(READ_SYNC, bio); |
200 | wait_on_page_locked(page); | 202 | wait_on_page_locked(page); |
201 | bio_put(bio); | 203 | bio_put(bio); |
202 | if (!PageUptodate(page)) { | 204 | if (!PageUptodate(page)) { |