]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: support simple conversion of extent-mapped inodes to use i_blocks
authorTheodore Ts'o <tytso@mit.edu>
Sat, 9 Feb 2013 21:30:30 +0000 (16:30 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 9 Feb 2013 21:30:30 +0000 (16:30 -0500)
commit7eedefe864d4a71a437a255a7018b6a723c058f0
tree2324911667d0d12e33c1c5f814ac3f784a3f60b8
parentb6e96d0067d81f6a300bedee661b5ece8164e210
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