summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2014-03-13 19:07:58 +1100
committerDave Chinner <david@fromorbit.com>2014-03-13 19:07:58 +1100
commit376ba313147b4172f3e8cf620b9fb591f3e8cdfa (patch)
treefdea729e188c6d2b61c7f14fc470da7b965694e5 /include
parent409332b65d3ed8cfa7a8030f1e9d52f372219642 (diff)
downloadlinux-376ba313147b4172f3e8cf620b9fb591f3e8cdfa.tar.gz
xfs: Add support for FALLOC_FL_ZERO_RANGE
Introduce new FALLOC_FL_ZERO_RANGE flag for fallocate. This has the same
functionality as xfs ioctl XFS_IOC_ZERO_RANGE.

We can also preallocate blocks past EOF in the same was as with
fallocate. Flag FALLOC_FL_KEEP_SIZE will cause the inode size to remain
the same even if we preallocate blocks past EOF.

It uses the same code to zero range as it is used by the
XFS_IOC_ZERO_RANGE ioctl.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>

Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions