<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/ext4/dir.c, branch linux-2.6.32.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.32.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.32.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-08-02T17:21:22Z</updated>
<entry>
<title>ext4: Use bitops to read/modify i_flags in struct ext4_inode_info</title>
<updated>2010-08-02T17:21:22Z</updated>
<author>
<name>Dmitry Monakhov</name>
</author>
<published>2010-05-31T02:50:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b6eaf5813482cd0f7a26be329845518100097181'/>
<id>urn:sha1:b6eaf5813482cd0f7a26be329845518100097181</id>
<content type='text'>
commit 12e9b892002d9af057655d35b44db8ee9243b0dc upstream (as of v2.6.34-git13)

At several places we modify EXT4_I(inode)-&gt;i_flags without holding
i_mutex (ext4_do_update_inode, ...). These modifications are racy and
we can lose updates to i_flags. So convert handling of i_flags to use
bitops which are atomic.

https://bugzilla.kernel.org/show_bug.cgi?id=15792

Signed-off-by: Dmitry Monakhov &lt;dmonakhov@openvz.org&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>ext4: make "offset" consistent in ext4_check_dir_entry()</title>
<updated>2010-08-02T17:21:14Z</updated>
<author>
<name>Toshiyuki Okajima</name>
</author>
<published>2010-05-31T02:49:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b8aa5edf84a8e7cc432cbfda2be7cefa0a46347'/>
<id>urn:sha1:2b8aa5edf84a8e7cc432cbfda2be7cefa0a46347</id>
<content type='text'>
commit b8b8afe236e97b6359d46d3a3f8c46455e192271 upstream (as of v2.6.33-git11)

The callers of ext4_check_dir_entry() usually pass in the "file
offset" (ext4_readdir, htree_dirblock_to_tree, search_dirblock,
ext4_dx_find_entry, empty_dir), but a few callers (add_dirent_to_buf,
ext4_delete_entry) only pass in the buffer offset.

To accomodate those last two (which would be hard to fix otherwise),
this patch changes ext4_check_dir_entry() to print the physical block
number and the relative offset as well as the passed-in offset.

Signed-off-by: Toshiyuki Okajima &lt;toshi.okajima@jp.fujitsu.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>ext4: Define a new set of flags for ext4_get_blocks()</title>
<updated>2009-05-14T04:58:52Z</updated>
<author>
<name>Theodore Ts'o</name>
</author>
<published>2009-05-14T04:58:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c21770573319922e3f3fcb331cfaa290c49f1c81'/>
<id>urn:sha1:c21770573319922e3f3fcb331cfaa290c49f1c81</id>
<content type='text'>
The functions ext4_get_blocks(), ext4_ext_get_blocks(), and
ext4_ind_get_blocks() used an ad-hoc set of integer variables used as
boolean flags passed in as arguments.  Use a single flags parameter
and a setandard set of bitfield flags instead.  This saves space on
the call stack, and it also makes the code a bit more understandable.

Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>ext4: Rename ext4_get_blocks_wrap() to be ext4_get_blocks()</title>
<updated>2009-05-14T04:57:44Z</updated>
<author>
<name>Theodore Ts'o</name>
</author>
<published>2009-05-14T04:57:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=12b7ac176831df1aa58a787e67c3e5d698b30163'/>
<id>urn:sha1:12b7ac176831df1aa58a787e67c3e5d698b30163</id>
<content type='text'>
Another function rename for clarity's sake.  The _wrap prefix simply
confuses people, and didn't add much people trying to follow the code
paths.

Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>ext4: New rec_len encoding for very large blocksizes</title>
<updated>2009-02-15T04:01:36Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2009-02-15T04:01:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d0518f4758eca4339e75e5b9dbb7e06a5ce08b4'/>
<id>urn:sha1:3d0518f4758eca4339e75e5b9dbb7e06a5ce08b4</id>
<content type='text'>
The rec_len field in the directory entry is 16 bits, so to encode
blocksizes larger than 64k becomes problematic.  This patch allows us
to supprot block sizes up to 256k, by using the low 2 bits to extend
the range of rec_len to 2**18-1 (since valid rec_len sizes must be a
multiple of 4).  We use the convention that a rec_len of 0 or 65535
means the filesystem block size, for compatibility with older kernels.

It's unlikely we'll see VM pages of up to 256k, but at some point we
might find that the Linux VM has been enhanced to support filesystem
block sizes &gt; than the VM page size, at which point it might be useful
for some applications to allow very large filesystem block sizes.

Signed-off-by: Wei Yongjun &lt;yjwei@cn.fujitsu.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>ext4: Make printk's consistently prefixed with "EXT4-fs: "</title>
<updated>2009-01-06T05:20:32Z</updated>
<author>
<name>Theodore Ts'o</name>
</author>
<published>2009-01-06T05:20:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=abda14189251563a50f56da5ea2e37e904ac4cba'/>
<id>urn:sha1:abda14189251563a50f56da5ea2e37e904ac4cba</id>
<content type='text'>
Previously, some were "ext4: ", and some were "EXT4: "; change them to
be consistent with most ext4 printk's, which is to use "EXT4-fs: ".

Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>ext4: Change unsigned long to unsigned int</title>
<updated>2008-11-05T05:14:04Z</updated>
<author>
<name>Theodore Ts'o</name>
</author>
<published>2008-11-05T05:14:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=498e5f24158da7bf8fa48074a70e370e22844492'/>
<id>urn:sha1:498e5f24158da7bf8fa48074a70e370e22844492</id>
<content type='text'>
Convert the unsigned longs that are most responsible for bloating the
stack usage on 64-bit systems.

Nearly all places in the ext3/4 code which uses "unsigned long" is
probably a bug, since on 32-bit systems a ulong a 32-bits, which means
we are wasting stack space on 64-bit systems.

Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>ext4: Fix duplicate entries returned from getdents() system call</title>
<updated>2008-10-26T02:37:55Z</updated>
<author>
<name>Theodore Ts'o</name>
</author>
<published>2008-10-25T15:39:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c37fc86d20fe35be656f070997d62f75c2e4874'/>
<id>urn:sha1:3c37fc86d20fe35be656f070997d62f75c2e4874</id>
<content type='text'>
Fix a regression caused by commit d0156417, "ext4: fix ext4_dx_readdir
hash collision handling", where deleting files in a large directory
(requiring more than one getdents system call), results in some
filenames being returned twice.  This was caused by a failure to
update info-&gt;curr_hash and info-&gt;curr_minor_hash, so that if the
directory had gotten modified since the last getdents() system call
(as would be the case if the user is running "rm -r" or "git clean"),
a directory entry would get returned twice to the userspace.

Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;

This patch fixes the bug reported by Markus Trippelsdorf at:
http://bugzilla.kernel.org/show_bug.cgi?id=11844

Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
Tested-by: Markus Trippelsdorf &lt;markus@trippelsdorf.de&gt;
</content>
</entry>
<entry>
<title>ext4: Avoid printk floods in the face of directory corruption</title>
<updated>2008-10-09T15:15:52Z</updated>
<author>
<name>Eric Sandeen</name>
</author>
<published>2008-10-09T15:15:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d9f177572d9e4eba0f2e18523b44f90dd51fe74'/>
<id>urn:sha1:9d9f177572d9e4eba0f2e18523b44f90dd51fe74</id>
<content type='text'>
Note: some people thinks this represents a security bug, since it
might make the system go away while it is printing a large number of
console messages, especially if a serial console is involved.  Hence,
it has been assigned CVE-2008-3528, but it requires that the attacker
either has physical access to your machine to insert a USB disk with a
corrupted filesystem image (at which point why not just hit the power
button), or is otherwise able to convince the system administrator to
mount an arbitrary filesystem image (at which point why not just
include a setuid shell or world-writable hard disk device file or some
such).  Me, I think they're just being silly. --tytso

Signed-off-by: Eric Sandeen &lt;sandeen@redhat.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
Cc: linux-ext4@vger.kernel.org
Cc: Eugene Teo &lt;eugeneteo@kernel.sg&gt;
</content>
</entry>
<entry>
<title>ext4: Fix whitespace checkpatch warnings/errors</title>
<updated>2008-09-09T02:25:24Z</updated>
<author>
<name>Theodore Ts'o</name>
</author>
<published>2008-09-09T02:25:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=af5bc92dded4d98dfeabc8b5b9812571345b263d'/>
<id>urn:sha1:af5bc92dded4d98dfeabc8b5b9812571345b263d</id>
<content type='text'>
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;

</content>
</entry>
</feed>
