[PATCH] btrfs - replace div_long_long_rem()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Chris,

While compiling btrfs against 2.6.25-rc8-mm1, ran into this.
div_long_long_rem() is removed in -mm. Replace with div_u64_rem().

Thanks,
Badari

div_long_long_rem() API is being removed (patch in -mm).
Replace div_long_long_rem() with div_u64_rem().

Signed-off-by: Badari Pulavarty <pbadari@xxxxxxxxxx>
---
 extent-tree.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Index: btrfs-0.13/extent-tree.c
===================================================================
--- btrfs-0.13.orig/extent-tree.c	2008-02-21 11:54:12.000000000 -0800
+++ btrfs-0.13/extent-tree.c	2008-04-03 07:18:04.000000000 -0800
@@ -19,6 +19,7 @@
 #include <linux/sched.h>
 #include <linux/crc32c.h>
 #include <linux/pagemap.h>
+#include <linux/math64.h>
 #include "hash.h"
 #include "ctree.h"
 #include "disk-io.h"
@@ -2653,7 +2654,7 @@
 	u64 nr = 0;
 	u64 cur_byte;
 	u64 old_size;
-	unsigned long rem;
+	u32 rem;
 	struct btrfs_block_group_cache *cache;
 	struct btrfs_block_group_item *item;
 	struct btrfs_fs_info *info = root->fs_info;
@@ -2691,7 +2692,7 @@
 				      struct btrfs_block_group_item);
 
 		btrfs_set_disk_block_group_used(leaf, item, 0);
-		div_long_long_rem(nr, 3, &rem);
+		div_u64_rem(nr, 3, &rem);
 		if (rem) {
 			btrfs_set_disk_block_group_flags(leaf, item,
 						 BTRFS_BLOCK_GROUP_DATA);


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux