Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/mm/
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()
/linux-6.6.21/mm/
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()
/linux-6.6.21/fs/ceph/
Daddr.c642 if (end > ceph_fscrypt_page_offset(page) + thp_size(page)) in get_writepages_data_length()
643 end = ceph_fscrypt_page_offset(page) + thp_size(page); in get_writepages_data_length()
665 loff_t len = thp_size(page); in writepage_nounlock()
746 WARN_ON_ONCE(len > thp_size(page)); in writepage_nounlock()
1176 len += thp_size(page); in ceph_writepages_start()
1225 thp_size(pages[locked_pages - 1]) - offset); in ceph_writepages_start()
1273 len += thp_size(page); in ceph_writepages_start()
1283 u64 min_len = len + 1 - thp_size(page); in ceph_writepages_start()
1700 if (off + thp_size(page) <= size) in ceph_page_mkwrite()
1701 len = thp_size(page); in ceph_page_mkwrite()
/linux-6.6.21/include/linux/
Dmm.h1316 static inline unsigned long thp_size(struct page *page) in thp_size() function
2271 #define offset_in_thp(page, p) ((unsigned long)(p) & (thp_size(page) - 1))