Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 304635 Details for
Bug 444960
kernel: JFFS2: Fix free space leak with in-band cleanmarkers
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
backported patch
jffs2-fix-space-leak.patch (text/plain), 1.37 KB, created by
Josef Bacik
on 2008-05-06 14:28:46 UTC
(
hide
)
Description:
backported patch
Filename:
MIME Type:
Creator:
Josef Bacik
Created:
2008-05-06 14:28:46 UTC
Size:
1.37 KB
patch
obsolete
>diff -up linux-2.6.18.x86_64/fs/jffs2/erase.c.josef linux-2.6.18.x86_64/fs/jffs2/erase.c >--- linux-2.6.18.x86_64/fs/jffs2/erase.c.josef 2008-05-06 10:10:21.000000000 -0400 >+++ linux-2.6.18.x86_64/fs/jffs2/erase.c 2008-05-06 10:14:08.000000000 -0400 >@@ -382,9 +382,6 @@ static void jffs2_mark_erased_block(stru > if (jffs2_write_nand_cleanmarker(c, jeb)) > goto filebad; > } >- >- /* Everything else got zeroed before the erase */ >- jeb->free_size = c->sector_size; > } else { > > struct kvec vecs[1]; >@@ -412,17 +409,19 @@ static void jffs2_mark_erased_block(stru > > goto filebad; > } >- >- /* Everything else got zeroed before the erase */ >- jeb->free_size = c->sector_size; >- /* FIXME Special case for cleanmarker in empty block */ >- jffs2_link_node_ref(c, jeb, jeb->offset | REF_NORMAL, c->cleanmarker_size, NULL); > } >+ /* Everything else got zeroed before the erase */ >+ jeb->free_size = c->sector_size; > > spin_lock(&c->erase_completion_lock); >+ >+ > c->erasing_size -= c->sector_size; >- c->free_size += jeb->free_size; >- c->used_size += jeb->used_size; >+ c->free_size += c->sector_size; >+ >+ /* Account for cleanmarker now, if it's in-band */ >+ if (c->cleanmarker_size && !jffs2_cleanmarker_oob(c)) >+ jffs2_link_node_ref(c, jeb, jeb->offset | REF_NORMAL, c->cleanmarker_size, NULL); > > jffs2_dbg_acct_sanity_check_nolock(c,jeb); > jffs2_dbg_acct_paranoia_check_nolock(c, jeb);
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 444960
: 304635