-
- Downloads
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>
Showing
- arch/x86/kvm/mmu.c 1 addition, 1 deletionarch/x86/kvm/mmu.c
- fs/btrfs/disk-io.c 4 additions, 4 deletionsfs/btrfs/disk-io.c
- fs/btrfs/extent-tree.c 1 addition, 1 deletionfs/btrfs/extent-tree.c
- fs/ext2/super.c 3 additions, 3 deletionsfs/ext2/super.c
- fs/ext3/super.c 3 additions, 3 deletionsfs/ext3/super.c
- fs/ext4/super.c 9 additions, 5 deletionsfs/ext4/super.c
- fs/file_table.c 1 addition, 1 deletionfs/file_table.c
- fs/quota/dquot.c 1 addition, 1 deletionfs/quota/dquot.c
- fs/super.c 2 additions, 1 deletionfs/super.c
- include/linux/percpu_counter.h 6 additions, 4 deletionsinclude/linux/percpu_counter.h
- include/net/dst_ops.h 1 addition, 1 deletioninclude/net/dst_ops.h
- include/net/inet_frag.h 1 addition, 1 deletioninclude/net/inet_frag.h
- lib/flex_proportions.c 2 additions, 2 deletionslib/flex_proportions.c
- lib/percpu_counter.c 2 additions, 2 deletionslib/percpu_counter.c
- lib/proportions.c 3 additions, 3 deletionslib/proportions.c
- mm/backing-dev.c 1 addition, 1 deletionmm/backing-dev.c
- mm/mmap.c 1 addition, 1 deletionmm/mmap.c
- mm/nommu.c 1 addition, 1 deletionmm/nommu.c
- mm/shmem.c 1 addition, 1 deletionmm/shmem.c
- net/dccp/proto.c 1 addition, 1 deletionnet/dccp/proto.c
Loading
Please register or sign in to comment