aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2011-04-20 19:20:15 -0400
committerDavid Sterba <dsterba@suse.cz>2011-05-02 07:57:22 -0400
commitb3b4aa74b58bded927f579fff787fb6fa1c0393c (patch)
tree30dab4ab26558992dd8b6b212bef805de11c4c29 /fs/btrfs/free-space-cache.c
parentba14419264684b290f0d0b7f48d26eafb11fc0c6 (diff)
btrfs: drop unused parameter from btrfs_release_path
parameter tree root it's not used since commit 5f39d397dfbe140a14edecd4e73c34ce23c4f9ee ("Btrfs: Create extent_buffer interface for large blocksizes") Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
-rw-r--r--fs/btrfs/free-space-cache.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index d06abe20a729..48fafcb85b0e 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -61,7 +61,7 @@ struct inode *lookup_free_space_inode(struct btrfs_root *root,
61 if (ret < 0) 61 if (ret < 0)
62 return ERR_PTR(ret); 62 return ERR_PTR(ret);
63 if (ret > 0) { 63 if (ret > 0) {
64 btrfs_release_path(root, path); 64 btrfs_release_path(path);
65 return ERR_PTR(-ENOENT); 65 return ERR_PTR(-ENOENT);
66 } 66 }
67 67
@@ -70,7 +70,7 @@ struct inode *lookup_free_space_inode(struct btrfs_root *root,
70 struct btrfs_free_space_header); 70 struct btrfs_free_space_header);
71 btrfs_free_space_key(leaf, header, &disk_key); 71 btrfs_free_space_key(leaf, header, &disk_key);
72 btrfs_disk_key_to_cpu(&location, &disk_key); 72 btrfs_disk_key_to_cpu(&location, &disk_key);
73 btrfs_release_path(root, path); 73 btrfs_release_path(path);
74 74
75 inode = btrfs_iget(root->fs_info->sb, &location, root, NULL); 75 inode = btrfs_iget(root->fs_info->sb, &location, root, NULL);
76 if (!inode) 76 if (!inode)
@@ -134,7 +134,7 @@ int create_free_space_inode(struct btrfs_root *root,
134 btrfs_set_inode_block_group(leaf, inode_item, 134 btrfs_set_inode_block_group(leaf, inode_item,
135 block_group->key.objectid); 135 block_group->key.objectid);
136 btrfs_mark_buffer_dirty(leaf); 136 btrfs_mark_buffer_dirty(leaf);
137 btrfs_release_path(root, path); 137 btrfs_release_path(path);
138 138
139 key.objectid = BTRFS_FREE_SPACE_OBJECTID; 139 key.objectid = BTRFS_FREE_SPACE_OBJECTID;
140 key.offset = block_group->key.objectid; 140 key.offset = block_group->key.objectid;
@@ -143,7 +143,7 @@ int create_free_space_inode(struct btrfs_root *root,
143 ret = btrfs_insert_empty_item(trans, root, path, &key, 143 ret = btrfs_insert_empty_item(trans, root, path, &key,
144 sizeof(struct btrfs_free_space_header)); 144 sizeof(struct btrfs_free_space_header));
145 if (ret < 0) { 145 if (ret < 0) {
146 btrfs_release_path(root, path); 146 btrfs_release_path(path);
147 return ret; 147 return ret;
148 } 148 }
149 leaf = path->nodes[0]; 149 leaf = path->nodes[0];
@@ -152,7 +152,7 @@ int create_free_space_inode(struct btrfs_root *root,
152 memset_extent_buffer(leaf, 0, (unsigned long)header, sizeof(*header)); 152 memset_extent_buffer(leaf, 0, (unsigned long)header, sizeof(*header));
153 btrfs_set_free_space_key(leaf, header, &disk_key); 153 btrfs_set_free_space_key(leaf, header, &disk_key);
154 btrfs_mark_buffer_dirty(leaf); 154 btrfs_mark_buffer_dirty(leaf);
155 btrfs_release_path(root, path); 155 btrfs_release_path(path);
156 156
157 return 0; 157 return 0;
158} 158}
@@ -822,7 +822,7 @@ int btrfs_write_out_cache(struct btrfs_root *root,
822 EXTENT_DIRTY | EXTENT_DELALLOC | 822 EXTENT_DIRTY | EXTENT_DELALLOC |
823 EXTENT_DO_ACCOUNTING, 0, 0, NULL, 823 EXTENT_DO_ACCOUNTING, 0, 0, NULL,
824 GFP_NOFS); 824 GFP_NOFS);
825 btrfs_release_path(root, path); 825 btrfs_release_path(path);
826 goto out_free; 826 goto out_free;
827 } 827 }
828 } 828 }
@@ -832,7 +832,7 @@ int btrfs_write_out_cache(struct btrfs_root *root,
832 btrfs_set_free_space_bitmaps(leaf, header, bitmaps); 832 btrfs_set_free_space_bitmaps(leaf, header, bitmaps);
833 btrfs_set_free_space_generation(leaf, header, trans->transid); 833 btrfs_set_free_space_generation(leaf, header, trans->transid);
834 btrfs_mark_buffer_dirty(leaf); 834 btrfs_mark_buffer_dirty(leaf);
835 btrfs_release_path(root, path); 835 btrfs_release_path(path);
836 836
837 ret = 1; 837 ret = 1;
838 838