summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dir-item.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-05-22 13:11:22 +0200
committerChris Mason <chris.mason@oracle.com>2011-05-22 13:11:22 +0200
commit0d0ca30f180906224be6279788f2b202cfd959d8 (patch)
treea0e35c968410f3f08f2a215ed5b4d6449d8bd11f /fs/btrfs/dir-item.c
parentMerge branch 'delayed_inode' into inode_numbers (diff)
downloadlinux-0d0ca30f180906224be6279788f2b202cfd959d8.tar.xz
linux-0d0ca30f180906224be6279788f2b202cfd959d8.zip
Btrfs: update the delayed inode code to use the btrfs_ino helper.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/dir-item.c')
-rw-r--r--fs/btrfs/dir-item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c
index f53fb3847c96..e757202a014e 100644
--- a/fs/btrfs/dir-item.c
+++ b/fs/btrfs/dir-item.c
@@ -138,7 +138,7 @@ int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root
struct btrfs_disk_key disk_key;
u32 data_size;
- key.objectid = dir->i_ino;
+ key.objectid = btrfs_ino(dir);
btrfs_set_key_type(&key, BTRFS_DIR_ITEM_KEY);
key.offset = btrfs_name_hash(name, name_len);