Lines Matching refs:mmp
1497 int mm_account_pinned_pages(struct mmpin *mmp, size_t size) in mm_account_pinned_pages() argument
1511 user = mmp->user ? : current_user(); in mm_account_pinned_pages()
1520 if (!mmp->user) { in mm_account_pinned_pages()
1521 mmp->user = get_uid(user); in mm_account_pinned_pages()
1522 mmp->num_pg = num_pg; in mm_account_pinned_pages()
1524 mmp->num_pg += num_pg; in mm_account_pinned_pages()
1531 void mm_unaccount_pinned_pages(struct mmpin *mmp) in mm_unaccount_pinned_pages() argument
1533 if (mmp->user) { in mm_unaccount_pinned_pages()
1534 atomic_long_sub(mmp->num_pg, &mmp->user->locked_vm); in mm_unaccount_pinned_pages()
1535 free_uid(mmp->user); in mm_unaccount_pinned_pages()
1553 uarg->mmp.user = NULL; in msg_zerocopy_alloc()
1555 if (mm_account_pinned_pages(&uarg->mmp, size)) { in msg_zerocopy_alloc()
1608 if (mm_account_pinned_pages(&uarg_zc->mmp, size)) in msg_zerocopy_realloc()
1658 mm_unaccount_pinned_pages(&uarg->mmp); in __msg_zerocopy_callback()