kernel_optimize_test/fs/btrfs
Josef Bacik 6719db6a23 Btrfs: fix 64 bit divide problem
This fixes a regression introduced by commit cdcb725c05 ("Btrfs: check
if there is enough space for balancing smarter").  We can't do 64-bit
divides on 32-bit architectures.

In cases where we need to divide/multiply by 2 we should just left/right
shift respectively, and in cases where theres N number of devices use
do_div.  Also make the counters u64 to match up with rw_devices.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Acked-and-tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-08-21 07:02:00 -07:00
..
acl.c
async-thread.c
async-thread.h
btrfs_inode.h
compat.h
compression.c
compression.h
ctree.c
ctree.h Merge branch 'btrfs-3.0' into for-linus 2011-08-18 10:38:03 -04:00
delayed-inode.c
delayed-inode.h
delayed-ref.c
delayed-ref.h
dir-item.c
disk-io.c
disk-io.h
export.c
export.h
extent_io.c
extent_io.h
extent_map.c
extent_map.h
extent-tree.c Btrfs: fix 64 bit divide problem 2011-08-21 07:02:00 -07:00
file-item.c
file.c Merge branch 'btrfs-3.0' into for-linus 2011-08-18 10:38:03 -04:00
free-space-cache.c Btrfs: fix wrong free space information 2011-08-16 21:09:31 -04:00
free-space-cache.h
hash.h
inode-item.c
inode-map.c
inode-map.h
inode.c btrfs: btrfs_permission's RO check shouldn't apply to device nodes 2011-08-18 10:16:03 -04:00
ioctl.c Merge branch 'btrfs-3.0' into for-linus 2011-08-18 10:38:03 -04:00
ioctl.h
Kconfig
locking.c
locking.h
lzo.c
Makefile
ordered-data.c
ordered-data.h
orphan.c
print-tree.c
print-tree.h
relocation.c
root-tree.c
scrub.c
struct-funcs.c
super.c
sysfs.c
transaction.c
transaction.h
tree-defrag.c
tree-log.c Btrfs: fix an oops of log replay 2011-08-16 21:09:15 -04:00
tree-log.h
version.h
volumes.c Btrfs: fix uninitialized sync_pending 2011-08-16 21:09:31 -04:00
volumes.h Btrfs: detect wether a device supports discard 2011-08-16 21:09:15 -04:00
xattr.c
xattr.h
zlib.c