diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-02-12 14:11:25 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-02-12 14:11:25 -0500 |
commit | e00f7308658622fbd483cb0d9fe41165bf9050d0 (patch) | |
tree | 5baeaee96a3d6789f4cce2ca17d7f4f8afb3431e /fs/btrfs/inode.c | |
parent | 7951f3cefbd711f4429a0cd014aa83a844c399a0 (diff) | |
download | op-kernel-dev-e00f7308658622fbd483cb0d9fe41165bf9050d0.zip op-kernel-dev-e00f7308658622fbd483cb0d9fe41165bf9050d0.tar.gz |
Btrfs: remove btrfs_init_path
btrfs_init_path was initially used when the path objects were on the
stack. Now all the work is done by btrfs_alloc_path and btrfs_init_path
isn't required.
This patch removes it, and just uses kmem_cache_zalloc to zero out the object.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 638bcb5..3cee77a 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2531,8 +2531,6 @@ noinline int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, key.offset = (u64)-1; key.type = (u8)-1; - btrfs_init_path(path); - search_again: ret = btrfs_search_slot(trans, root, &key, path, -1, 1); if (ret < 0) |