Skip to content

Commit

Permalink
fs/jfs: Add check if journaling to disk has been disabled in lbmRead()
Browse files Browse the repository at this point in the history
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
  • Loading branch information
Gu Zheng authored and Dave Kleikamp committed May 24, 2013
1 parent e9b3766 commit 95bbb82
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fs/jfs/jfs_logmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,13 @@ static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp)

bio->bi_end_io = lbmIODone;
bio->bi_private = bp;
submit_bio(READ_SYNC, bio);
/*check if journaling to disk has been disabled*/
if (log->no_integrity) {
bio->bi_size = 0;
lbmIODone(bio, 0);
} else {
submit_bio(READ_SYNC, bio);
}

wait_event(bp->l_ioevent, (bp->l_flag != lbmREAD));

Expand Down

0 comments on commit 95bbb82

Please sign in to comment.