summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode-map.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2012-02-24 10:39:05 -0500
committerChris Mason <chris.mason@oracle.com>2012-02-24 10:39:05 -0500
commite77266e4c4be6f9dc91bf688bce015a8babd5fe0 (patch)
tree9ad1f7fa246188ac2f12088a8a1e354ffea63799 /fs/btrfs/inode-map.c
parent5500cdbe14d7435e04f66ff3cfb8ecd8b8e44ebf (diff)
downloadlinux-e77266e4c4be6f9dc91bf688bce015a8babd5fe0.tar.gz
linux-e77266e4c4be6f9dc91bf688bce015a8babd5fe0.tar.bz2
linux-e77266e4c4be6f9dc91bf688bce015a8babd5fe0.zip
Btrfs: fix compiler warnings on 32 bit systems
The enospc tracing code added some interesting uses of u64 pointer casts. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode-map.c')
-rw-r--r--fs/btrfs/inode-map.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/inode-map.c b/fs/btrfs/inode-map.c
index 213ffa86ce1b..ee15d88b33d2 100644
--- a/fs/btrfs/inode-map.c
+++ b/fs/btrfs/inode-map.c
@@ -438,7 +438,8 @@ int btrfs_save_ino_cache(struct btrfs_root *root,
trans->bytes_reserved);
if (ret)
goto out;
- trace_btrfs_space_reservation(root->fs_info, "ino_cache", (u64)trans,
+ trace_btrfs_space_reservation(root->fs_info, "ino_cache",
+ (u64)(unsigned long)trans,
trans->bytes_reserved, 1);
again:
inode = lookup_free_ino_inode(root, path);
@@ -500,7 +501,8 @@ again:
out_put:
iput(inode);
out_release:
- trace_btrfs_space_reservation(root->fs_info, "ino_cache", (u64)trans,
+ trace_btrfs_space_reservation(root->fs_info, "ino_cache",
+ (u64)(unsigned long)trans,
trans->bytes_reserved, 0);
btrfs_block_rsv_release(root, trans->block_rsv, trans->bytes_reserved);
out: