commit | 2aaa66558172b017f36bf38ae69372813dedee9d | [log] [tgz] |
---|---|---|
author | Josef Bacik <jbacik@fusionio.com> | Wed Aug 29 14:27:18 2012 -0400 |
committer | Chris Mason <chris.mason@fusionio.com> | Mon Oct 01 15:19:07 2012 -0400 |
tree | d6150a615935d36166cd06d69e3252451e62e724 | |
parent | 2671485d395c07fca104c972785898d7c52fc942 [diff] [blame] |
Btrfs: add hole punching This patch adds hole punching via fallocate. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com>
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index df2f17b..ee51b7a 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c
@@ -4132,6 +4132,8 @@ void btrfs_free_block_rsv(struct btrfs_root *root, struct btrfs_block_rsv *rsv) { + if (!rsv) + return; btrfs_block_rsv_release(root, rsv, (u64)-1); kfree(rsv); }