Lines Matching defs:subpage

26 #include "subpage.h"
910 /* Has preallocated memory for subpage */
913 /* Do new allocation to attach subpage */
1252 * For subpage, one page can contain several sectors, and
1256 * This is a big problem for subpage, we shouldn't re-submit already written
1258 * This function will lookup subpage dirty bit to find which range we really
1268 struct btrfs_subpage *subpage = folio_get_private(folio);
1290 spin_lock_irqsave(&subpage->lock, flags);
1291 bitmap_next_set_region(subpage->bitmaps, &range_start_bit, &range_end_bit,
1293 spin_unlock_irqrestore(&subpage->lock, flags);
1348 * But we still need to clear the dirty subpage bit, or
1350 * writeback the sectors with subpage dirty bits,
1401 * function, subpage dirty bit is not cleared.
1402 * So clear subpage dirty bit here so next time we won't submit
1420 * but also empty subpage dirty bits
1744 * Submit one subpage btree page.
1748 * For subpage, we don't rely on page locking at all.
1768 struct btrfs_subpage *subpage = folio_get_private(folio);
1774 * Take private lock to ensure the subpage won't be detached
1782 spin_lock_irqsave(&subpage->lock, flags);
1784 subpage->bitmaps)) {
1785 spin_unlock_irqrestore(&subpage->lock, flags);
1799 spin_unlock_irqrestore(&subpage->lock, flags);
3324 struct btrfs_subpage *subpage;
3329 subpage = folio_get_private(folio);
3330 if (atomic_read(&subpage->eb_refs))
3336 if (atomic_read(&subpage->readers))
3381 * For subpage, we can have dummy eb with folio private attached. In
3465 * UNMAPPED subpage extent buffer.
3660 * For subpage case, we completely rely on radix tree to ensure we
3763 * and subpage structure now.
3833 * Preallocate folio private for subpage case, so that we won't
3985 * subpage case detaching does a btrfs_folio_dec_eb_refs() for our eb.
3987 * detach_extent_buffer_folio() on our remaining pages in the !subpage
3988 * case. If we left eb->folios[i] populated in the subpage case we'd
4189 bool subpage = eb->fs_info->nodesize < PAGE_SIZE;
4192 * For subpage case, we can have other extent buffers in the
4194 * have to clear page dirty without subpage lock held.
4202 if (subpage)
4207 if (subpage)
4232 * This is special handling for metadata subpage, as regular
4253 * This is special handling for metadata subpage, as regular
4526 * For subpage case, check if the range covered by the eb has EXTENT_UPTODATE.
4971 * to grab buffer, for subpage case we rely on radix tree, thus