summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven2013-08-20 13:20:14 +0200
committerChris Mason2013-09-01 14:16:15 +0200
commitfba6aa75654394fccf2530041e9451414c28084f (patch)
treeb204c6ad9f1c7c0a3dcab4508081acd5afd57963 /fs/btrfs/ctree.h
parentBtrfs: Make btrfs_dev_extent_chunk_tree_uuid() return unsigned long (diff)
downloadkernel-qcow2-linux-fba6aa75654394fccf2530041e9451414c28084f.tar.gz
kernel-qcow2-linux-fba6aa75654394fccf2530041e9451414c28084f.tar.xz
kernel-qcow2-linux-fba6aa75654394fccf2530041e9451414c28084f.zip
Btrfs: Make btrfs_header_fsid() return unsigned long
Internally, btrfs_header_fsid() calculates an unsigned long, but casts it to a pointer, while all callers cast it to unsigned long again. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 2202bd8c5e16..1b8f5def29c7 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2675,10 +2675,9 @@ static inline void btrfs_set_header_backref_rev(struct extent_buffer *eb,
btrfs_set_header_flags(eb, flags);
}
-static inline u8 *btrfs_header_fsid(struct extent_buffer *eb)
+static inline unsigned long btrfs_header_fsid(struct extent_buffer *eb)
{
- unsigned long ptr = offsetof(struct btrfs_header, fsid);
- return (u8 *)ptr;
+ return offsetof(struct btrfs_header, fsid);
}
static inline u8 *btrfs_header_chunk_tree_uuid(struct extent_buffer *eb)