Searched refs:thp_size (Results 1 – 4 of 4) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/mm/ |
A D | split_huge_page_test.c | 138 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.3-rc2/mm/ |
A D | page_io.c | 321 bvec_set_page(&sio->bvec[sio->pages], page, thp_size(page), 0); in swap_writepage_fs() 322 sio->len += thp_size(page); in swap_writepage_fs() 341 bio_add_page(&bio, page, thp_size(page), 0); in swap_writepage_bdev_sync() 363 bio_add_page(bio, page, thp_size(page), 0); in swap_writepage_bdev_async() 452 bvec_set_page(&sio->bvec[sio->pages], page, thp_size(page), 0); in swap_readpage_fs() 453 sio->len += thp_size(page); in swap_readpage_fs() 471 bio_add_page(&bio, page, thp_size(page), 0); in swap_readpage_bdev_sync() 491 bio_add_page(bio, page, thp_size(page), 0); in swap_readpage_bdev_async()
|
/linux-6.3-rc2/fs/ceph/ |
A D | addr.c | 543 if (end > page_offset(page) + thp_size(page)) in get_writepages_data_length() 544 end = page_offset(page) + thp_size(page); in get_writepages_data_length() 563 loff_t len = thp_size(page); in writepage_nounlock() 625 WARN_ON_ONCE(len > thp_size(page)); in writepage_nounlock() 1018 len += thp_size(page); in ceph_writepages_start() 1067 thp_size(page) - offset); in ceph_writepages_start() 1109 len += thp_size(page); in ceph_writepages_start() 1119 u64 min_len = len + 1 - thp_size(page); in ceph_writepages_start() 1528 if (off + thp_size(page) <= size) in ceph_page_mkwrite() 1529 len = thp_size(page); in ceph_page_mkwrite()
|
/linux-6.3-rc2/include/linux/ |
A D | mm.h | 1149 static inline unsigned long thp_size(struct page *page) in thp_size() function 2074 #define offset_in_thp(page, p) ((unsigned long)(p) & (thp_size(page) - 1))
|
Completed in 17 milliseconds