summaryrefslogtreecommitdiffstats
path: root/net/ipv6/datagram.c
diff options
context:
space:
mode:
authorMike Rapoport2017-09-07 01:22:59 +0200
committerLinus Torvalds2017-09-07 02:27:28 +0200
commit0f0796945614b7523987f7eea32407421af4b1ee (patch)
treea83e72e957a4e696df87462882d2f239f7a9c608 /net/ipv6/datagram.c
parentshmem: shmem_charge: verify max_block is not exceeded before inode update (diff)
downloadkernel-qcow2-linux-0f0796945614b7523987f7eea32407421af4b1ee.tar.gz
kernel-qcow2-linux-0f0796945614b7523987f7eea32407421af4b1ee.tar.xz
kernel-qcow2-linux-0f0796945614b7523987f7eea32407421af4b1ee.zip
shmem: introduce shmem_inode_acct_block
The shmem_acct_block and the update of used_blocks are following one another in all the places they are used. Combine these two into a helper function. Link: http://lkml.kernel.org/r/1497939652-16528-3-git-send-email-rppt@linux.vnet.ibm.com Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Hillf Danton <hillf.zj@alibaba-inc.com> Cc: Hugh Dickins <hughd@google.com> Cc: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/ipv6/datagram.c')
0 files changed, 0 insertions, 0 deletions