fs: Use this_cpu_inc_return in buffer.c
authorChristoph Lameter <cl@linux.com>
Mon, 6 Dec 2010 17:40:05 +0000 (11:40 -0600)
committerTejun Heo <tj@kernel.org>
Fri, 17 Dec 2010 14:18:05 +0000 (15:18 +0100)
commitee1be8626355e6a1f3f8c44e2351ff2661c5998d
treecc7d20969444eb5e3c0541991014ef4fc5332185
parentcfb824349556904b319464139be5c75fce983b0d
fs: Use this_cpu_inc_return in buffer.c

__this_cpu_inc can create a single instruction with the same effect
as the _get_cpu_var(..)++ construct in buffer.c.

Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Christoph Hellwig <hch@lst.de>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
fs/buffer.c