projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd894be
)
[GFS2] Fix bug in super block reading code
author
Steven Whitehouse
<swhiteho@redhat.com>
Thu, 27 Jul 2006 20:37:48 +0000
(16:37 -0400)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Thu, 27 Jul 2006 20:37:48 +0000
(16:37 -0400)
This gets the argument to submit_bio() correct.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/gfs2/super.c
b/fs/gfs2/super.c
index 48fd4cb49c1e434cc7080ec67d64001adf6481f9..3c318a9e8a8c6d20d3e336dc71618308f062cb4a 100644
(file)
--- 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)) {