Skip to content

Commit cc937db

Browse files
Eric Sandeentytso
authored andcommitted
jbd2: Make barrier messages less scary
Saying things like "sync failed" when a device does not support barriers makes users slightly more worried than they need to be; rather than talking about sync failures, let's just state the barrier-based facts. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
1 parent e357063 commit cc937db

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎fs/jbd2/commit.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ static int journal_submit_commit_record(journal_t *journal,
150150
*/
151151
if (ret == -EOPNOTSUPP && barrier_done) {
152152
printk(KERN_WARNING
153-
"JBD: barrier-based sync failed on %s - "
154-
"disabling barriers\n", journal->j_devname);
153+
"JBD2: Disabling barriers on %s, "
154+
"not supported by device\n", journal->j_devname);
155155
spin_lock(&journal->j_state_lock);
156156
journal->j_flags &= ~JBD2_BARRIER;
157157
spin_unlock(&journal->j_state_lock);
@@ -180,8 +180,8 @@ static int journal_wait_on_commit_record(journal_t *journal,
180180
wait_on_buffer(bh);
181181
if (buffer_eopnotsupp(bh) && (journal->j_flags & JBD2_BARRIER)) {
182182
printk(KERN_WARNING
183-
"JBD2: wait_on_commit_record: sync failed on %s - "
184-
"disabling barriers\n", journal->j_devname);
183+
"JBD2: %s: disabling barries on %s - not supported "
184+
"by device\n", __func__, journal->j_devname);
185185
spin_lock(&journal->j_state_lock);
186186
journal->j_flags &= ~JBD2_BARRIER;
187187
spin_unlock(&journal->j_state_lock);

0 commit comments

Comments
 (0)