<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/jffs2/scan.c, branch linux-3.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-05-09T22:16:17Z</updated>
<entry>
<title>jffs2: fix handling of corrupted summary length</title>
<updated>2015-05-09T22:16:17Z</updated>
<author>
<name>Chen Jie</name>
</author>
<published>2015-02-10T20:49:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee2c1c3f794a4b184d51fa9dce27185b2af550fe'/>
<id>urn:sha1:ee2c1c3f794a4b184d51fa9dce27185b2af550fe</id>
<content type='text'>
commit 164c24063a3eadee11b46575c5482b2f1417be49 upstream.

sm-&gt;offset maybe wrong but magic maybe right, the offset do not have CRC.

Badness at c00c7580 [verbose debug info unavailable]
NIP: c00c7580 LR: c00c718c CTR: 00000014
REGS: df07bb40 TRAP: 0700   Not tainted  (2.6.34.13-WR4.3.0.0_standard)
MSR: 00029000 &lt;EE,ME,CE&gt;  CR: 22084f84  XER: 00000000
TASK = df84d6e0[908] 'mount' THREAD: df07a000
GPR00: 00000001 df07bbf0 df84d6e0 00000000 00000001 00000000 df07bb58 00000041
GPR08: 00000041 c0638860 00000000 00000010 22084f88 100636c8 df814ff8 00000000
GPR16: df84d6e0 dfa558cc c05adb90 00000048 c0452d30 00000000 000240d0 000040d0
GPR24: 00000014 c05ae734 c05be2e0 00000000 00000001 00000000 00000000 c05ae730
NIP [c00c7580] __alloc_pages_nodemask+0x4d0/0x638
LR [c00c718c] __alloc_pages_nodemask+0xdc/0x638
Call Trace:
[df07bbf0] [c00c718c] __alloc_pages_nodemask+0xdc/0x638 (unreliable)
[df07bc90] [c00c7708] __get_free_pages+0x20/0x48
[df07bca0] [c00f4a40] __kmalloc+0x15c/0x1ec
[df07bcd0] [c01fc880] jffs2_scan_medium+0xa58/0x14d0
[df07bd70] [c01ff38c] jffs2_do_mount_fs+0x1f4/0x6b4
[df07bdb0] [c020144c] jffs2_do_fill_super+0xa8/0x260
[df07bdd0] [c020230c] jffs2_fill_super+0x104/0x184
[df07be00] [c0335814] get_sb_mtd_aux+0x9c/0xec
[df07be20] [c033596c] get_sb_mtd+0x84/0x1e8
[df07be60] [c0201ed0] jffs2_get_sb+0x1c/0x2c
[df07be70] [c0103898] vfs_kern_mount+0x78/0x1e8
[df07bea0] [c0103a58] do_kern_mount+0x40/0x100
[df07bec0] [c011fe90] do_mount+0x240/0x890
[df07bf10] [c0120570] sys_mount+0x90/0xd8
[df07bf40] [c00110d8] ret_from_syscall+0x0/0x4

=== Exception: c01 at 0xff61a34
    LR = 0x100135f0
Instruction dump:
38800005 38600000 48010f41 4bfffe1c 4bfc2d15 4bfffe8c 72e90200 4082fc28
3d20c064 39298860 8809000d 68000001 &lt;0f000000&gt; 2f800000 419efc0c 38000001
mount: mounting /dev/mtdblock3 on /common failed: Input/output error

Signed-off-by: Chen Jie &lt;chenjie6@huawei.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>jffs2: Avoid unneeded 'if' before kfree</title>
<updated>2011-09-11T12:02:10Z</updated>
<author>
<name>Jesper Juhl</name>
</author>
<published>2011-06-13T20:16:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8a0e41266e9c207ad8ac158cee9547ef1bc90ac'/>
<id>urn:sha1:e8a0e41266e9c207ad8ac158cee9547ef1bc90ac</id>
<content type='text'>
kfree() deals gracefully with NULL pointers, so it's pointless to test for
one prior to calling it.
This removes such a test from jffs2_scan_medium().

Signed-off-by: Jesper Juhl &lt;jj@chaosbits.net&gt;
Signed-off-by: Artem Bityutskiy &lt;dedekind1@gmail.com&gt;
</content>
</entry>
<entry>
<title>JFFS2: retry large buffer allocations</title>
<updated>2011-05-25T01:00:50Z</updated>
<author>
<name>Grant Erickson</name>
</author>
<published>2011-04-08T15:51:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1ddd0d9a3177356f2a29c8f3826ad79e1ad18397'/>
<id>urn:sha1:1ddd0d9a3177356f2a29c8f3826ad79e1ad18397</id>
<content type='text'>
Replace direct call to kmalloc for a potentially large, contiguous
buffer allocation with one to mtd_kmalloc_up_to which helps ensure the
operation can succeed under low-memory, highly- fragmented situations
albeit somewhat more slowly.

Signed-off-by: Grant Erickson &lt;marathon96@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>jffs2: Reduce excessive scan of empty blocks</title>
<updated>2010-10-25T00:12:20Z</updated>
<author>
<name>Joakim Tjernlund</name>
</author>
<published>2010-10-07T17:09:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=41bdc602eca8738d6f3c71235744f72d888fe6b4'/>
<id>urn:sha1:41bdc602eca8738d6f3c71235744f72d888fe6b4</id>
<content type='text'>
Scanning 1024 bytes to see if an EB is empty is a bit much.
Lower it to 256 bytes and make sure the while loop is
optimized.

Signed-off-by: Joakim Tjernlund &lt;Joakim.Tjernlund@transmode.se&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>jffs2: Use jffs2_garbage_collect_trigger() to trigger pending erases</title>
<updated>2010-05-19T16:10:44Z</updated>
<author>
<name>David Woodhouse</name>
</author>
<published>2010-05-19T16:05:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ae3b6ba06c8ed399ef920724ee8136e540878294'/>
<id>urn:sha1:ae3b6ba06c8ed399ef920724ee8136e540878294</id>
<content type='text'>
This is now done in a GC pass; we don't need to trigger kupdated to do it.

Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>jffs2: fix another potential leak on error path in scan.c</title>
<updated>2009-06-23T00:34:19Z</updated>
<author>
<name>David Woodhouse</name>
</author>
<published>2009-06-23T00:34:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4839641333d4593bfc4fb29aa3af10d36f607d5b'/>
<id>urn:sha1:4839641333d4593bfc4fb29aa3af10d36f607d5b</id>
<content type='text'>
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>jffs2: leaking jffs2_summary in function jffs2_scan_medium</title>
<updated>2009-06-15T10:17:46Z</updated>
<author>
<name>Christian Engelmayer</name>
</author>
<published>2009-06-13T21:06:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a2ab0ce09edf20b5228208405dd14bc8790fbdbd'/>
<id>urn:sha1:a2ab0ce09edf20b5228208405dd14bc8790fbdbd</id>
<content type='text'>
In case of an error returned by file_dirty() 's' is not freed as the cleanup
path is skipped.

Reported by Coverity.

Signed-off-by: Christian Engelmayer &lt;christian.engelmayer@frequentis.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>[MTD][NOR] Add physical address to point() method</title>
<updated>2008-05-01T17:59:11Z</updated>
<author>
<name>Jared Hulbert</name>
</author>
<published>2008-04-30T06:26:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a98889f3d8882995b5aa2255b931cf0202325cc0'/>
<id>urn:sha1:a98889f3d8882995b5aa2255b931cf0202325cc0</id>
<content type='text'>
Adding the ability to get a physical address from point() in addition
to virtual address.  This physical address is required for XIP of
userspace code from flash.

Signed-off-by: Jared Hulbert &lt;jaredeh@gmail.com&gt;
Reviewed-by: Jörn Engel &lt;joern@logfs.org&gt;
Acked-by: Nicolas Pitre &lt;nico@cam.org&gt;
Acked-by: Greg Ungerer &lt;gerg@uclinux.org&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[JFFS2] Track parent inode for directories (for NFS export)</title>
<updated>2008-05-01T17:47:17Z</updated>
<author>
<name>David Woodhouse</name>
</author>
<published>2008-05-01T17:47:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=27c72b040c0be8f3704ed0b6b84c12cbba24a7e8'/>
<id>urn:sha1:27c72b040c0be8f3704ed0b6b84c12cbba24a7e8</id>
<content type='text'>
To support NFS export, we need to know the parent inode of directories.
Rather than growing the jffs2_inode_cache structure, share space with
the nlink field -- which was always set to 1 for directories anyway.

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[JFFS2] Handle dirents on the flash with embedded zero bytes in names.</title>
<updated>2007-10-13T10:35:58Z</updated>
<author>
<name>David Woodhouse</name>
</author>
<published>2007-10-13T10:35:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b534e70cf5529378a1ed994492641ec0330554eb'/>
<id>urn:sha1:b534e70cf5529378a1ed994492641ec0330554eb</id>
<content type='text'>
In three places: summary scan, normal scan, REF_PRISTINE GC.

Just truncate at the NUL, since that was the correct thing to do in the
only case where this (inexplicable) breakage has been seen.

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
</feed>
