diff options
author | Aneesh <aneesh.kumar@linux.vnet.ibm.com> | 2007-06-13 16:18:26 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-06-13 16:18:26 -0400 |
commit | f1ace244c8c1e16eaa5c8b3b5339849651e31ede (patch) | |
tree | f1a84930a17a6803072f390bab28eb43f6e95f5b /fs/btrfs/inode-item.c | |
parent | b79ab950f57c3260ee609ba41779019d21b8eb88 (diff) |
btrfs: Code cleanup
Attaching below is some of the code cleanups that i came across while
reading the code.
a) alloc_path already calls init_path.
b) Mention that btrfs_inode is the in memory copy.Ext4 have ext4_inode_info as
the in memory copy ext4_inode as the disk copy
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode-item.c')
-rw-r--r-- | fs/btrfs/inode-item.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/inode-item.c b/fs/btrfs/inode-item.c index 449e9dbdf957..e8b5a9f7c0c2 100644 --- a/fs/btrfs/inode-item.c +++ b/fs/btrfs/inode-item.c | |||
@@ -35,7 +35,6 @@ int btrfs_insert_inode(struct btrfs_trans_handle *trans, struct btrfs_root | |||
35 | 35 | ||
36 | path = btrfs_alloc_path(); | 36 | path = btrfs_alloc_path(); |
37 | BUG_ON(!path); | 37 | BUG_ON(!path); |
38 | btrfs_init_path(path); | ||
39 | ret = btrfs_insert_item(trans, root, &key, inode_item, | 38 | ret = btrfs_insert_item(trans, root, &key, inode_item, |
40 | sizeof(*inode_item)); | 39 | sizeof(*inode_item)); |
41 | btrfs_release_path(root, path); | 40 | btrfs_release_path(root, path); |