]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: support simple conversion of extent-mapped inodes to use i_blocks
authorTheodore Ts'o <tytso@mit.edu>
Thu, 4 Apr 2013 02:04:52 +0000 (22:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Apr 2013 02:04:52 +0000 (22:04 -0400)
commitd644fd2ea1649127d62bcc806b213a41802537cd
treea066fe717c593c2189f886612fbe1282cfb7fdcc
parente5968fae639b7a4756b2fb447f2986b0b0660e44
ext4: support simple conversion of extent-mapped inodes to use i_blocks

In order to make it simpler to test the code which support
i_blocks/indirect-mapped inodes, support the conversion of inodes
which are less than 12 blocks and which are contained in no more than
a single extent.

The primary intended use of this code is to converting freshly created
zero-length files and empty directories.

Note that the version of chattr in e2fsprogs 1.42.7 and earlier has a
check that prevents the clearing of the extent flag.  A simple patch
which allows "chattr -e <file>" to work will be checked into the
e2fsprogs git repository.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/ioctl.c