percpu_counter: add @gfp to percpu_counter_init()
authorTejun Heo <tj@kernel.org>
Mon, 8 Sep 2014 00:51:29 +0000 (09:51 +0900)
committerTejun Heo <tj@kernel.org>
Mon, 8 Sep 2014 00:51:29 +0000 (09:51 +0900)
commit908c7f1949cb7cc6e92ba8f18f2998e87e265b8e
treeaf885c65c6fe794cab7b7ad37bd811531a2a2ac5
parentebd8fef304f99da84d4a52ad056f6137ac9652d4
percpu_counter: add @gfp to percpu_counter_init()

Percpu allocator now supports allocation mask.  Add @gfp to
percpu_counter_init() so that !GFP_KERNEL allocation masks can be used
with percpu_counters too.

We could have left percpu_counter_init() alone and added
percpu_counter_init_gfp(); however, the number of users isn't that
high and introducing _gfp variants to all percpu data structures would
be quite ugly, so let's just do the conversion.  This is the one with
the most users.  Other percpu data structures are a lot easier to
convert.

This patch doesn't make any functional difference.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Jan Kara <jack@suse.cz>
Acked-by: "David S. Miller" <davem@davemloft.net>
Cc: x86@kernel.org
Cc: Jens Axboe <axboe@kernel.dk>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
23 files changed:
arch/x86/kvm/mmu.c
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/ext2/super.c
fs/ext3/super.c
fs/ext4/super.c
fs/file_table.c
fs/quota/dquot.c
fs/super.c
include/linux/percpu_counter.h
include/net/dst_ops.h
include/net/inet_frag.h
lib/flex_proportions.c
lib/percpu_counter.c
lib/proportions.c
mm/backing-dev.c
mm/mmap.c
mm/nommu.c
mm/shmem.c
net/dccp/proto.c
net/ipv4/tcp.c
net/ipv4/tcp_memcontrol.c
net/sctp/protocol.c