]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] percpu counter data type changes to suppport more than 2**31 ext3 free blocks...
authorMingming Cao <cmm@us.ibm.com>
Fri, 23 Jun 2006 09:05:41 +0000 (02:05 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:43:06 +0000 (07:43 -0700)
commitf78644114cd5dffad5898d224632d63be9e9738c
tree80eaa49bfc644b070e57c251285048992ac6fafc
parent9ec623a52351f84eb3f42a2d5121a92b9f374ce0
[PATCH] percpu counter data type changes to suppport more than 2**31 ext3 free blocks counter

The percpu counter data type are changed in this set of patches to support
more users like ext3 who need more than 32 bit to store the free blocks
total in the filesystem.

- Generic perpcu counters data type changes.  The size of the global counter
  and local counter were explictly specified using s64 and s32.  The global
  counter is changed from long to s64, while the local counter is changed from
  long to s32, so we could avoid doing 64 bit update in most cases.

- Users of the percpu counters are updated to make use of the new
  percpu_counter_init() routine now taking an additional parameter to allow
  users to pass the initial value of the global counter.

Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext2/super.c
fs/ext3/super.c
fs/file_table.c
include/linux/percpu_counter.h
lib/percpu_counter.c