summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode-map.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-09-08 05:25:55 -0400
committerChris Mason <clm@fb.com>2015-10-21 21:41:06 -0400
commit7cf5b97650f2ecefbd5afa2d58b61b289b6e3750 (patch)
tree65bdb57078053527218338c59e4e34057d3206d1 /fs/btrfs/inode-map.c
parentdf480633b891cf03301d87e56024a8ec3251da5b (diff)
btrfs: qgroup: Cleanup old inaccurate facilities
Cleanup the old facilities which use old btrfs_qgroup_reserve() function call, replace them with the newer version, and remove the "__" prefix in them. Also, make btrfs_qgroup_reserve/free() functions private, as they are now only used inside qgroup codes. Now, the whole btrfs qgroup is swithed to use the new reserve facilities. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/inode-map.c')
-rw-r--r--fs/btrfs/inode-map.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/inode-map.c b/fs/btrfs/inode-map.c
index 78bc09c552ab..767a6056ac45 100644
--- a/fs/btrfs/inode-map.c
+++ b/fs/btrfs/inode-map.c
@@ -488,17 +488,17 @@ again:
488 /* Just to make sure we have enough space */ 488 /* Just to make sure we have enough space */
489 prealloc += 8 * PAGE_CACHE_SIZE; 489 prealloc += 8 * PAGE_CACHE_SIZE;
490 490
491 ret = __btrfs_delalloc_reserve_space(inode, 0, prealloc); 491 ret = btrfs_delalloc_reserve_space(inode, 0, prealloc);
492 if (ret) 492 if (ret)
493 goto out_put; 493 goto out_put;
494 494
495 ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, prealloc, 495 ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, prealloc,
496 prealloc, prealloc, &alloc_hint); 496 prealloc, prealloc, &alloc_hint);
497 if (ret) { 497 if (ret) {
498 __btrfs_delalloc_release_space(inode, 0, prealloc); 498 btrfs_delalloc_release_space(inode, 0, prealloc);
499 goto out_put; 499 goto out_put;
500 } 500 }
501 __btrfs_free_reserved_data_space(inode, 0, prealloc); 501 btrfs_free_reserved_data_space(inode, 0, prealloc);
502 502
503 ret = btrfs_write_out_ino_cache(root, trans, path, inode); 503 ret = btrfs_write_out_ino_cache(root, trans, path, inode);
504out_put: 504out_put: