ext4: Fix bigalloc quota accounting and i_blocks value
authorAditya Kali <adityakali@google.com>
Fri, 9 Sep 2011 23:04:51 +0000 (19:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 9 Sep 2011 23:04:51 +0000 (19:04 -0400)
commit7b415bf60f6afb0499fd3dc0ee33444f54e28567
tree9c64fef2b8d60ce64865af6e4c2cc6008026e28c
parent27baebb849d46d901e756e6502b0a65a62e43771
ext4: Fix bigalloc quota accounting and i_blocks value

With bigalloc changes, the i_blocks value was not correctly set (it was still
set to number of blocks being used, but in case of bigalloc, we want i_blocks
to represent the number of clusters being used). Since the quota subsystem sets
the i_blocks value, this patch fixes the quota accounting and makes sure that
the i_blocks value is set correctly.

Signed-off-by: Aditya Kali <adityakali@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/balloc.c
fs/ext4/ext4.h
fs/ext4/ext4_extents.h
fs/ext4/extents.c
fs/ext4/inode.c
fs/ext4/mballoc.c
fs/ext4/super.c