diff options
Diffstat (limited to 'fs/jbd2/recovery.c')
-rw-r--r-- | fs/jbd2/recovery.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c index da6d7baf1390..c1a03354a22f 100644 --- a/fs/jbd2/recovery.c +++ b/fs/jbd2/recovery.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/jbd2.h> | 21 | #include <linux/jbd2.h> |
22 | #include <linux/errno.h> | 22 | #include <linux/errno.h> |
23 | #include <linux/crc32.h> | 23 | #include <linux/crc32.h> |
24 | #include <linux/blkdev.h> | ||
24 | #endif | 25 | #endif |
25 | 26 | ||
26 | /* | 27 | /* |
@@ -265,7 +266,9 @@ int jbd2_journal_recover(journal_t *journal) | |||
265 | err2 = sync_blockdev(journal->j_fs_dev); | 266 | err2 = sync_blockdev(journal->j_fs_dev); |
266 | if (!err) | 267 | if (!err) |
267 | err = err2; | 268 | err = err2; |
268 | 269 | /* Make sure all replayed data is on permanent storage */ | |
270 | if (journal->j_flags & JBD2_BARRIER) | ||
271 | blkdev_issue_flush(journal->j_fs_dev, GFP_KERNEL, NULL); | ||
269 | return err; | 272 | return err; |
270 | } | 273 | } |
271 | 274 | ||