aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2011-12-08 02:07:24 -0500
committerLi Zefan <lizf@cn.fujitsu.com>2012-01-10 21:26:42 -0500
commit125ccb0ae6806dbec31abf4a85448971df3b4e39 (patch)
treef530e85bea0639379997000a37e914d180e9e5b4 /fs/btrfs/extent-tree.c
parent4da6f1a332f6c16b6594c7892f13c31459b9b1c8 (diff)
Btrfs: don't pass a trans handle unnecessarily in volumes.c
Some functions never use the transaction handle passed to them. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 8603ee4e3dfd..5b53479ce07b 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -7084,7 +7084,7 @@ int btrfs_can_relocate(struct btrfs_root *root, u64 bytenr)
7084 * space to fit our block group in. 7084 * space to fit our block group in.
7085 */ 7085 */
7086 if (device->total_bytes > device->bytes_used + min_free) { 7086 if (device->total_bytes > device->bytes_used + min_free) {
7087 ret = find_free_dev_extent(NULL, device, min_free, 7087 ret = find_free_dev_extent(device, min_free,
7088 &dev_offset, NULL); 7088 &dev_offset, NULL);
7089 if (!ret) 7089 if (!ret)
7090 dev_nr++; 7090 dev_nr++;