Re: [PATCH] new dir format take 3

2008-07-23 Thread Josef Bacik
On Tue, Jul 22, 2008 at 03:54:47PM -0400, Chris Mason wrote: On Tue, 2008-07-22 at 14:44 -0400, Josef Bacik wrote: + + if (BTRFS_I(dir)-index_cnt == (u64)-1) + btrfs_get_index_count(dir); + BTRFS_I(inode)-index = BTRFS_I(dir)-index_cnt; +

Re: [PATCH] Use do_div() instead of native 64-bit division in btrfs_ordered_sum_size()

2008-07-23 Thread Chris Mason
On Wed, 2008-07-23 at 07:13 -0400, Christoph Hellwig wrote: Chris, can you please put this patch in? Without it btrfs can't be loaded on 32bit platforms. I've pushed out a slightly different fix. The ordered extents are based on ram writeback, and so an unsigned long is enough. -chris --

Re: [PATCH] Use do_div() instead of native 64-bit division in btrfs_ordered_sum_size()

2008-07-23 Thread David Woodhouse
On Wed, 2008-07-23 at 09:28 -0400, Chris Mason wrote: On Wed, 2008-07-23 at 07:13 -0400, Christoph Hellwig wrote: Chris, can you please put this patch in? Without it btrfs can't be loaded on 32bit platforms. I've pushed out a slightly different fix. The ordered extents are based on

Re: [PATCH] Use do_div() instead of native 64-bit division in btrfs_ordered_sum_size()

2008-07-23 Thread Chris Mason
On Wed, 2008-07-23 at 17:07 -0400, David Woodhouse wrote: On Wed, 2008-07-23 at 09:28 -0400, Chris Mason wrote: On Wed, 2008-07-23 at 07:13 -0400, Christoph Hellwig wrote: Chris, can you please put this patch in? Without it btrfs can't be loaded on 32bit platforms. I've pushed