Skip to content
Snippets Groups Projects
Commit c49c82ba authored by girish's avatar girish
Browse files

JBD2_HAS_COMPAT_FEATURE was used instead of JBD2_HAS_INCOMPAT_FEATURE for

checking _INCOMPAT_ASYNC_COMMIT.
Fixed it.
b=10657
parent e88fec23
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ Index: linux-2.6.16.53-0.16/fs/jbd/commit.c
+ bh->b_end_io = journal_end_buffer_io_sync;
+
+ if (journal->j_flags & JFS_BARRIER &&
+ !JFS_HAS_COMPAT_FEATURE(journal,
+ !JFS_HAS_INCOMPAT_FEATURE(journal,
+ JFS_FEATURE_INCOMPAT_ASYNC_COMMIT)) {
+
set_buffer_ordered(bh);
......@@ -518,7 +518,7 @@ Index: linux-2.6.16.53-0.16/fs/jbd/recovery.c
+ if (chksum_err) {
+ info->end_transaction = next_commit_ID;
+
+ if (!JFS_HAS_COMPAT_FEATURE(journal,
+ if (!JFS_HAS_INCOMPAT_FEATURE(journal,
+ JFS_FEATURE_INCOMPAT_ASYNC_COMMIT)){
+ printk(KERN_ERR
+ "JBD: Transaction %u "
......
......@@ -71,7 +71,7 @@ Index: linux-2.6.18.8/fs/jbd/commit.c
+ bh->b_end_io = journal_end_buffer_io_sync;
+
+ if (journal->j_flags & JFS_BARRIER &&
+ !JFS_HAS_COMPAT_FEATURE(journal,
+ !JFS_HAS_INCOMPAT_FEATURE(journal,
+ JFS_FEATURE_INCOMPAT_ASYNC_COMMIT)) {
+
set_buffer_ordered(bh);
......@@ -526,7 +526,7 @@ Index: linux-2.6.18.8/fs/jbd/recovery.c
+ if (chksum_err) {
+ info->end_transaction = next_commit_ID;
+
+ if (!JFS_HAS_COMPAT_FEATURE(journal,
+ if (!JFS_HAS_INCOMPAT_FEATURE(journal,
+ JFS_FEATURE_INCOMPAT_ASYNC_COMMIT)){
+ printk(KERN_ERR
+ "JBD: Transaction %u "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment