]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: set EXT4_EXTENTS_FL only for directory and regular files
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 25 Feb 2008 21:38:03 +0000 (16:38 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 25 Feb 2008 21:38:03 +0000 (16:38 -0500)
commit8692066f34cac419f1d9baa4397aa2e1959adde5
tree6806cafbbc0f72f84c16c4875909307c5aec09bf
parent649d1e8062c5de76f4759d8b6b759c2018b1c096
ext4: set EXT4_EXTENTS_FL only for directory and regular files

In addition, don't inherit EXT4_EXTENTS_FL from parent directory.
If we have a directory with extent flag set and later mount the file
system with -o noextents, the files created in that directory will also
have extent flag set but we would not have called ext4_ext_tree_init for
them. This will cause error later when we are verifying the extent header

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Acked-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ialloc.c
fs/ext4/namei.c