]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Btrfs: Fix 32 bit compiles by using an unsigned long byte count in the ordered extent
authorChris Mason <chris.mason@oracle.com>
Wed, 23 Jul 2008 13:26:26 +0000 (09:26 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:05 +0000 (11:04 -0400)
The ordered extents have to fit in memory, so an unsigned long is sufficient.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ordered-data.h

index 36e63f1f79b30b56914958be3e72c5ca598c6d02..199cb0b4f1d9a1d7a0de54fdca8ea0d33f9eefa6 100644 (file)
@@ -95,7 +95,8 @@ struct btrfs_ordered_extent {
  * calculates the total size you need to allocate for an ordered sum
  * structure spanning 'bytes' in the file
  */
-static inline int btrfs_ordered_sum_size(struct btrfs_root *root, u64 bytes)
+static inline int btrfs_ordered_sum_size(struct btrfs_root *root,
+                                        unsigned long bytes)
 {
        unsigned long num_sectors = (bytes + root->sectorsize - 1) /
                root->sectorsize;