diff options
author | Allison Henderson <achender@linux.vnet.ibm.com> | 2011-05-25 11:41:46 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-05-25 11:41:46 (GMT) |
commit | e861304b8ed83fe43e36d46794d72641c82d4636 (patch) | |
tree | 14a9c42ee5b6a531bc3202063bcd9c413e30c17e /fs/ioctl.c | |
parent | d583fb87a3ff0ca50befd2f73f7a67fade1c8c56 (diff) | |
download | linux-e861304b8ed83fe43e36d46794d72641c82d4636.tar.xz |
ext4: add "punch hole" flag to ext4_map_blocks()
This patch adds a new flag to ext4_map_blocks() that specifies the
given range of blocks should be punched out. Extents are first
converted to uninitialized extents before they are punched
out. Because punching a hole may require that the extent be split, it
is possible that the splitting may need more blocks than are
available. To deal with this, use of reserved blocks are enabled to
allow the split to proceed.
The routine then returns the number of blocks successfully
punched out.
[ext4 punch hole patch series 4/5 v7]
Signed-off-by: Allison Henderson <achender@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Mingming Cao <cmm@us.ibm.com>
Diffstat (limited to 'fs/ioctl.c')
0 files changed, 0 insertions, 0 deletions