Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 327372 Details for
Bug 439502
Progressive ext4 data corruption regression introduced in Linux 3.4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Upstream patch
jbd_patch (text/plain), 987 bytes, created by
Dmitry Suloev
on 2012-10-25 03:30:05 UTC
(
hide
)
Description:
Upstream patch
Filename:
MIME Type:
Creator:
Dmitry Suloev
Created:
2012-10-25 03:30:05 UTC
Size:
987 bytes
patch
obsolete
>diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c >index 0f16edd..0064181 100644 >--- a/fs/jbd2/journal.c >+++ b/fs/jbd2/journal.c >@@ -1351,18 +1351,20 @@ void jbd2_journal_update_sb_log_tail(journal_t *journal, tid_t tail_tid, > static void jbd2_mark_journal_empty(journal_t *journal) > { > journal_superblock_t *sb = journal->j_superblock; >+ __be32 new_tail_sequence; > > BUG_ON(!mutex_is_locked(&journal->j_checkpoint_mutex)); > read_lock(&journal->j_state_lock); >- /* Is it already empty? */ >- if (sb->s_start == 0) { >+ new_tail_sequence = cpu_to_be32(journal->j_tail_sequence); >+ /* Nothing to do? */ >+ if (sb->s_start == 0 && sb->s_sequence == new_tail_sequence) { > read_unlock(&journal->j_state_lock); > return; > } > jbd_debug(1, "JBD2: Marking journal as empty (seq %d)\n", > journal->j_tail_sequence); > >- sb->s_sequence = cpu_to_be32(journal->j_tail_sequence); >+ sb->s_sequence = new_tail_sequence; > sb->s_start = cpu_to_be32(0); > read_unlock(&journal->j_state_lock);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 439502
:
327372
|
328068