diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-12-05 10:54:52 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-17 01:46:20 (GMT) |
commit | 7426cc04d407621773af3a0403e57642e40c36bf (patch) | |
tree | c4ee079d8f66cd23ac58f770f618a02f419dd01e /fs/btrfs/inode.c | |
parent | 0061280d2c7240805cfd7b1f493da967c97c2f34 (diff) | |
download | linux-7426cc04d407621773af3a0403e57642e40c36bf.tar.xz |
Btrfs: punch hole past the end of the file
Since we can pre-allocate the space past EOF, we should be able to reclaim
that space if we need. This patch implements it by removing the EOF check.
Though the manual of fallocate command says we can use truncate command to
reclaim the pre-allocated space which past EOF, but because truncate command
changes the file size, we must run several commands to reclaim the space if we
don't want to change the file size, so it is not a good choice.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions