<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/ext4/migrate.c, branch linux-2.6.28.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2009-03-17T00:32:42Z</updated>
<entry>
<title>ext4: Fix NULL dereference in ext4_ext_migrate()'s error handling</title>
<updated>2009-03-17T00:32:42Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2009-02-24T17:14:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49d5e9a1f84aae864ac49b9579efcd99ce6993f4'/>
<id>urn:sha1:49d5e9a1f84aae864ac49b9579efcd99ce6993f4</id>
<content type='text'>
(cherry picked from commit 090542641de833c6f756895fc2f139f046e298f9)

This was found through a code checker (http://repo.or.cz/w/smatch.git/).
It looks like you might be able to trigger the error by trying to migrate
a readonly file system.

Signed-off-by: Dan Carpenter &lt;error27@gmail.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: elevate write count for migrate ioctl</title>
<updated>2008-09-13T16:52:26Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
</author>
<published>2008-09-13T16:52:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2a43a878001cc5cb7c3c7be2e8dad0a1aeb939b0'/>
<id>urn:sha1:2a43a878001cc5cb7c3c7be2e8dad0a1aeb939b0</id>
<content type='text'>
The migrate ioctl writes to the filsystem, so we need to elevate the
write count.

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>ext4: journal credits reservation fixes for extent file writepage</title>
<updated>2008-08-20T02:16:05Z</updated>
<author>
<name>Mingming Cao</name>
</author>
<published>2008-08-20T02:16:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee12b630687d510f6f4b6d4acdc4e267fd4adeda'/>
<id>urn:sha1:ee12b630687d510f6f4b6d4acdc4e267fd4adeda</id>
<content type='text'>
This patch modified the writepage/write_begin credit calculation for
extent files, to use the credits caculation helper function.

The current calculation of how many index/leaf blocks should be
accounted is too conservetive, it always considered the worse case,
where the tree level is 5, and in the case of multiple chunk
allocations, it always assumed no blocks were dirtied in common across
the allocations. This path uses the accurate depth of the inode with
some extras to calculate the index blocks, and also less conservative in
the case of multiple allocation accounting.

Signed-off-by: Mingming Cao &lt;cmm@us.ibm.com&gt;
Reviewed-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>ext4: move headers out of include/linux</title>
<updated>2008-04-29T22:13:32Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2008-04-29T22:13:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3dcf54515aa4981a647ad74859199032965193a5'/>
<id>urn:sha1:3dcf54515aa4981a647ad74859199032965193a5</id>
<content type='text'>
Move ext4 headers out of include/linux.  This is just the trivial move,
there's some more thing that could be done later. 

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Mingming Cao &lt;cmm@us.ibm.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;

</content>
</entry>
<entry>
<title>ext4: Fix race between migration and mmap write</title>
<updated>2008-04-29T12:11:12Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
</author>
<published>2008-04-29T12:11:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=267e4db9ac28a09973476e7ec2cb6807e609d35a'/>
<id>urn:sha1:267e4db9ac28a09973476e7ec2cb6807e609d35a</id>
<content type='text'>
Fail migrate if we allocated new blocks via mmap write.

If we write to holes in the file via mmap, we end up allocating
new blocks. This block allocation happens without taking inode-&gt;i_mutex.
Since migrate is protected by i_mutex and migrate expects that no
new blocks get allocated during migrate, fail migrate if new blocks
get allocated.

We can't take inode-&gt;i_mutex in the mmap write path because that
would result in a locking order violation between i_mutex and mmap_sem.
Also adding a separate rw_sempahore for protection is really high overhead
for a rare operation such as migrate.

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Acked-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>ext4: Fix memory and buffer head leak in callers to ext4_ext_find_extent()</title>
<updated>2008-02-25T21:54:37Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
</author>
<published>2008-02-25T21:54:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b35905c16ad6428551eb9e49525011bd2700cf56'/>
<id>urn:sha1:b35905c16ad6428551eb9e49525011bd2700cf56</id>
<content type='text'>
The path variable returned via ext4_ext_find_extent is a kmalloc
variable and needs to be freeded.  It also contains a reference to
buffer_head which needs to be dropped.

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Mingming Cao &lt;cmm@us.ibm.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;

</content>
</entry>
<entry>
<title>ext4: Fix circular locking dependency with migrate and rm.</title>
<updated>2008-02-10T06:20:05Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
</author>
<published>2008-02-10T06:20:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8009f9fb3067fef6c2ca0c16f6bac786ae28639d'/>
<id>urn:sha1:8009f9fb3067fef6c2ca0c16f6bac786ae28639d</id>
<content type='text'>
In order to prevent a circular locking dependency when an unlink
operation is racing with an ext4 migration, we delay taking i_data_sem
until just before switch the inode format, and use i_mutex to prevent
writes and truncates during the first part of the migration operation.

Acked-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Mingming Cao &lt;cmm@us.ibm.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;

</content>
</entry>
<entry>
<title>ext4: Don't set EXTENTS_FL flag for fast symlinks</title>
<updated>2008-02-05T15:56:37Z</updated>
<author>
<name>Valerie Clement</name>
</author>
<published>2008-02-05T15:56:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b8356c465b42c162f34b5fd4102a6c27cec36f43'/>
<id>urn:sha1:b8356c465b42c162f34b5fd4102a6c27cec36f43</id>
<content type='text'>
For fast symbolic links, the file content is stored in the i_block[]
array, which is not compatible with the new file extents format.
e2fsck reports error on such files because EXTENTS_FL is set.
Don't set the EXTENTS_FL flag when creating fast symlinks.

In the case of file migration, skip fast symbolic links.

Signed-off-by: Valerie Clement &lt;valerie.clement@bull.net&gt;
Signed-off-by: Mingming Cao &lt;cmm@us.ibm.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;

</content>
</entry>
<entry>
<title>ext4: Add multi block allocator for ext4</title>
<updated>2008-01-29T05:19:52Z</updated>
<author>
<name>Alex Tomas</name>
</author>
<published>2008-01-29T05:19:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c9de560ded61faa5b754137b7753da252391c55a'/>
<id>urn:sha1:c9de560ded61faa5b754137b7753da252391c55a</id>
<content type='text'>
Signed-off-by: Alex Tomas &lt;alex@clusterfs.com&gt;
Signed-off-by: Andreas Dilger &lt;adilger@clusterfs.com&gt;
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Sandeen &lt;sandeen@redhat.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>ext4: Add EXT4_IOC_MIGRATE ioctl</title>
<updated>2008-01-29T04:58:26Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
</author>
<published>2008-01-29T04:58:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c14c6fd5c56a0d0495d8a7c0f2bc330be658663e'/>
<id>urn:sha1:c14c6fd5c56a0d0495d8a7c0f2bc330be658663e</id>
<content type='text'>
The below patch add ioctl for migrating ext3 indirect block mapped inode
to ext4 extent mapped inode.

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
</content>
</entry>
</feed>
