Home
last modified time | relevance | path

Searched refs:thp_size (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/tools/testing/selftests/mm/
H A Dsplit_huge_page_test.c138 uint64_t thp_size; in split_pte_mapped_thp() local
193 thp_size = 0; in split_pte_mapped_thp()
197 thp_size++; in split_pte_mapped_thp()
199 if (thp_size != 4) { in split_pte_mapped_thp()
209 thp_size = 0; in split_pte_mapped_thp()
217 thp_size++; in split_pte_mapped_thp()
220 if (thp_size) { in split_pte_mapped_thp()
221 printf("Still %ld THPs not split\n", thp_size); in split_pte_mapped_thp()
/openbmc/linux/mm/
H A Dpage_io.c318 bvec_set_page(&sio->bvec[sio->pages], page, thp_size(page), 0); in swap_writepage_fs()
319 sio->len += thp_size(page); in swap_writepage_fs()
339 __bio_add_page(&bio, page, thp_size(page), 0); in swap_writepage_bdev_sync()
362 __bio_add_page(bio, page, thp_size(page), 0); in swap_writepage_bdev_async()
449 bvec_set_page(&sio->bvec[sio->pages], page, thp_size(page), 0); in swap_readpage_fs()
450 sio->len += thp_size(page); in swap_readpage_fs()
468 __bio_add_page(&bio, page, thp_size(page), 0); in swap_readpage_bdev_sync()
488 __bio_add_page(bio, page, thp_size(page), 0); in swap_readpage_bdev_async()
/openbmc/qemu/hw/virtio/
H A Dvirtio-mem.c88 static uint32_t thp_size; variable
97 if (thp_size) { in virtio_mem_thp_size()
98 return thp_size; in virtio_mem_thp_size()
112 thp_size = tmp; in virtio_mem_thp_size()
116 if (!thp_size) { in virtio_mem_thp_size()
117 thp_size = virtio_mem_default_thp_size(); in virtio_mem_thp_size()
119 " MiB.", thp_size / MiB); in virtio_mem_thp_size()
123 return thp_size; in virtio_mem_thp_size()
/openbmc/linux/fs/ceph/
H A Daddr.c644 if (end > ceph_fscrypt_page_offset(page) + thp_size(page)) in get_writepages_data_length()
645 end = ceph_fscrypt_page_offset(page) + thp_size(page); in get_writepages_data_length()
667 loff_t len = thp_size(page); in writepage_nounlock()
748 WARN_ON_ONCE(len > thp_size(page)); in writepage_nounlock()
1180 len += thp_size(page); in ceph_writepages_start()
1229 thp_size(pages[locked_pages - 1]) - offset); in ceph_writepages_start()
1277 len += thp_size(page); in ceph_writepages_start()
1287 u64 min_len = len + 1 - thp_size(page); in ceph_writepages_start()
1704 if (off + thp_size(page) <= size) in ceph_page_mkwrite()
1705 len = thp_size(page); in ceph_page_mkwrite()
/openbmc/linux/include/linux/
H A Dmm.h1322 static inline unsigned long thp_size(struct page *page) in thp_size() function
2277 #define offset_in_thp(page, p) ((unsigned long)(p) & (thp_size(page) - 1))