aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.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/ioctl.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/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index ffb48d6c5433..d11fc6548e15 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1396,7 +1396,7 @@ static noinline int search_ioctl(struct inode *inode,
1396 } 1396 }
1397 ret = copy_to_sk(root, path, &key, sk, args->buf, 1397 ret = copy_to_sk(root, path, &key, sk, args->buf,
1398 &sk_offset, &num_found); 1398 &sk_offset, &num_found);
1399 btrfs_release_path(root, path); 1399 btrfs_release_path(path);
1400 if (ret || num_found >= sk->nr_items) 1400 if (ret || num_found >= sk->nr_items)
1401 break; 1401 break;
1402 1402
@@ -1503,7 +1503,7 @@ static noinline int btrfs_search_path_in_tree(struct btrfs_fs_info *info,
1503 if (key.offset == BTRFS_FIRST_FREE_OBJECTID) 1503 if (key.offset == BTRFS_FIRST_FREE_OBJECTID)
1504 break; 1504 break;
1505 1505
1506 btrfs_release_path(root, path); 1506 btrfs_release_path(path);
1507 key.objectid = key.offset; 1507 key.objectid = key.offset;
1508 key.offset = (u64)-1; 1508 key.offset = (u64)-1;
1509 dirid = key.objectid; 1509 dirid = key.objectid;
@@ -1982,7 +1982,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
1982 datal = btrfs_file_extent_ram_bytes(leaf, 1982 datal = btrfs_file_extent_ram_bytes(leaf,
1983 extent); 1983 extent);
1984 } 1984 }
1985 btrfs_release_path(root, path); 1985 btrfs_release_path(path);
1986 1986
1987 if (key.offset + datal <= off || 1987 if (key.offset + datal <= off ||
1988 key.offset >= off+len) 1988 key.offset >= off+len)
@@ -2092,7 +2092,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
2092 } 2092 }
2093 2093
2094 btrfs_mark_buffer_dirty(leaf); 2094 btrfs_mark_buffer_dirty(leaf);
2095 btrfs_release_path(root, path); 2095 btrfs_release_path(path);
2096 2096
2097 inode->i_mtime = inode->i_ctime = CURRENT_TIME; 2097 inode->i_mtime = inode->i_ctime = CURRENT_TIME;
2098 2098
@@ -2113,12 +2113,12 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
2113 btrfs_end_transaction(trans, root); 2113 btrfs_end_transaction(trans, root);
2114 } 2114 }
2115next: 2115next:
2116 btrfs_release_path(root, path); 2116 btrfs_release_path(path);
2117 key.offset++; 2117 key.offset++;
2118 } 2118 }
2119 ret = 0; 2119 ret = 0;
2120out: 2120out:
2121 btrfs_release_path(root, path); 2121 btrfs_release_path(path);
2122 unlock_extent(&BTRFS_I(src)->io_tree, off, off+len, GFP_NOFS); 2122 unlock_extent(&BTRFS_I(src)->io_tree, off, off+len, GFP_NOFS);
2123out_unlock: 2123out_unlock:
2124 mutex_unlock(&src->i_mutex); 2124 mutex_unlock(&src->i_mutex);