[Devel] [PATCH rh7 0/3] fixes of fallocate(FALLOC_FL_CONVERT_AND_EXTEND)

Maxim Patlasov mpatlasov at virtuozzo.com
Wed Mar 9 16:14:31 PST 2016


The patch reworks the feature and renames it to FALLOC_FL_CONVERT_UNWRITTEN.

Intended use:

0) pos := i_size_read(inode); len := 1MB; prealloc := 100MB

1) fallocate(file, 0, pos, prealloc)
2) fiemap(inode, &fieinfo, pos, 1)
3) dio pwrite(block_device, data, len, fi_extent.fe_physical)
4) fallocate(file, FALLOC_FL_CONVERT_UNWRITTEN, pos, len)

---

Maxim Patlasov (3):
      vfs: fix fallocate(FALLOC_FL_CONVERT_AND_EXTEND)
      ext4: rework fallocate(FALLOC_FL_CONVERT_AND_EXTEND)
      ext4: rename fallocate(FALLOC_FL_CONVERT_AND_EXTEND)


 fs/ext4/extents.c           |  121 ++-----------------------------------------
 fs/open.c                   |    8 ++-
 include/uapi/linux/falloc.h |    3 -
 3 files changed, 14 insertions(+), 118 deletions(-)

--
Signature


More information about the Devel mailing list