ext4: let fallocate handle inline data correctly
authorTao Ma <boyu.mt@taobao.com>
Mon, 10 Dec 2012 19:06:03 +0000 (14:06 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Dec 2012 19:06:03 +0000 (14:06 -0500)
commit0c8d414f163f5d35e43a4de7a6e5ee8c253fcccf
tree7db57d3b2926408bda5bad880896ee4ec384f398
parentaef1c8513c1f8ae076e22ea2a57eff5835578e75
ext4: let fallocate handle inline data correctly

If we are punching hole in a file, we will return ENOTSUPP.
As for the fallocation of some extents, we will convert the
inline data to a normal extent based file first.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c
fs/ext4/inline.c
fs/ext4/xattr.h