Skip to content

Commit

Permalink
[GFS2] Fix bug in super block reading code
Browse files Browse the repository at this point in the history
This gets the argument to submit_bio() correct.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Jul 27, 2006
1 parent dd894be commit 2b98a54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/gfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 2b98a54

Please sign in to comment.