Searched refs:subpage (Results 1 - 20 of 20) sorted by relevance

/linux-master/fs/btrfs/
H A Dsubpage.c6 #include "subpage.h"
63 * Thus for metadata locking, subpage support relies on io_tree locking only.
74 * mapping. And if page->mapping->host is data inode, it's subpage.
81 * Now the only remaining case is metadata, which we only go subpage
123 struct btrfs_subpage *subpage; local
132 /* Either not subpage, or the folio already has private attached. */
136 subpage = btrfs_alloc_subpage(fs_info, type);
137 if (IS_ERR(subpage))
138 return PTR_ERR(subpage);
140 folio_attach_private(folio, subpage);
146 struct btrfs_subpage *subpage; local
181 btrfs_free_subpage(struct btrfs_subpage *subpage) argument
197 struct btrfs_subpage *subpage; local
211 struct btrfs_subpage *subpage; local
256 struct btrfs_subpage *subpage = folio_get_private(folio); local
278 struct btrfs_subpage *subpage = folio_get_private(folio); local
330 struct btrfs_subpage *subpage = folio_get_private(folio); local
350 struct btrfs_subpage *subpage = folio_get_private(folio); local
432 struct btrfs_subpage *subpage = folio_get_private(folio); local
447 struct btrfs_subpage *subpage = folio_get_private(folio); local
461 struct btrfs_subpage *subpage = folio_get_private(folio); local
485 struct btrfs_subpage *subpage = folio_get_private(folio); local
512 struct btrfs_subpage *subpage = folio_get_private(folio); local
527 struct btrfs_subpage *subpage = folio_get_private(folio); local
544 struct btrfs_subpage *subpage = folio_get_private(folio); local
558 struct btrfs_subpage *subpage = folio_get_private(folio); local
573 struct btrfs_subpage *subpage = folio_get_private(folio); local
588 struct btrfs_subpage *subpage = folio_get_private(folio); local
708 struct btrfs_subpage *subpage = folio_get_private(folio); local
739 struct btrfs_subpage *subpage; local
776 struct btrfs_subpage *subpage; local
[all...]
H A DMakefile35 subpage.o tree-mod-log.o extent-io-tree.o fs.o messages.o bio.o \
H A Dsubpage.h16 * For subpage we pack all uptodate/dirty/writeback/ordered bitmaps into
46 * For locked bitmaps, normally it's subpage representation for folio
76 * manages whether the subpage can be detached.
101 void btrfs_free_subpage(struct btrfs_subpage *subpage);
117 * Template for subpage related operations.
119 * btrfs_subpage_*() are for call sites where the folio has subpage attached and
122 * btrfs_folio_*() are for call sites where the page can either be subpage
H A Dextent_io.c26 #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); local
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
1768 struct btrfs_subpage *subpage = folio_get_private(folio); local
3324 struct btrfs_subpage *subpage; local
4189 bool subpage = eb->fs_info->nodesize < PAGE_SIZE; local
[all...]
H A Ddisk-io.c43 #include "subpage.h"
549 struct btrfs_subpage *subpage; local
564 subpage = folio_get_private(folio);
572 spin_lock_irqsave(&subpage->lock, flags);
573 if (!test_bit(cur_bit, subpage->bitmaps)) {
574 spin_unlock_irqrestore(&subpage->lock, flags);
577 spin_unlock_irqrestore(&subpage->lock, flags);
3093 * This is the place for less strict checks (like for subpage or artificial
H A Dinode.c54 #include "subpage.h"
769 * Special check for subpage.
772 * for the following case, we will hit some subpage specific corner case:
782 * So here we add an artificial limit that subpage compression can only
791 * By this, we can ensure for subpage case that only the last async_cow
910 * For subpage case, we require full page alignment for the sector
969 * extent for the subpage case.
1316 * Due to the page size limit, for subpage we can only trigger the
1351 * as it doesn't have any subpage::writers recorded.
4800 * here to make sure it's properly set for the subpage stuf
7949 struct btrfs_subpage *subpage; local
[all...]
/linux-master/tools/power/cpupower/utils/
H A Dcpupower.c81 static int print_man_page(const char *subpage) argument
87 if (subpage != NULL)
88 len += strlen(subpage);
95 if ((subpage != NULL) && strcmp(subpage, "help")) {
97 strcat(page, subpage);
/linux-master/tools/testing/selftests/powerpc/mm/
H A Dsubpage_prot.c68 static inline void check_faulted(void *addr, long page, long subpage, int write) argument
70 int want_fault = (subpage == ((page + 3) % 16));
73 want_fault |= (subpage == ((page + 1) % 16));
77 addr, page, subpage, write,
103 * for each page, mark subpage i % 16 read only and subpage
/linux-master/mm/
H A Drmap.c1622 struct page *subpage; local
1683 subpage = folio_page(folio, pfn - folio_pfn(folio));
1686 PageAnonExclusive(subpage);
1695 VM_BUG_ON_PAGE(!PageHWPoison(subpage), subpage);
1776 if (PageHWPoison(subpage) && (flags & TTU_HWPOISON)) {
1777 pteval = swp_entry_to_pte(make_hwpoison_entry(subpage));
1800 swp_entry_t entry = page_swap_entry(subpage);
1871 folio_try_share_anon_rmap_pte(folio, subpage)) {
1912 folio_remove_rmap_pte(folio, subpage, vm
1971 struct page *subpage; local
2346 struct page *subpage; local
[all...]
H A Dgup.c1293 struct page *subpage; local
1328 subpage = nth_page(page, j);
1329 pages[i + j] = subpage;
1330 flush_anon_page(vma, subpage, start + j * PAGE_SIZE);
1331 flush_dcache_page(subpage);
H A Dhuge_memory.c2549 * each subpage -- no need to (temporarily) clear.
2982 struct page *subpage = head + i; local
2983 struct folio *new_folio = page_folio(subpage);
2984 if (subpage == page)
2995 free_page_and_swap_cache(subpage);
3017 * any subpage of huge page to split. Split doesn't change the position of
3021 * which is used by partially mapped folios, is stored in subpage 2 and an
3022 * order-1 folio only has subpage 0 and 1. File-backed order-1 folios are OK,
H A Dmemory.c3504 * We could currently only reuse a subpage of a large folio if no
4590 * Just backoff if any subpage of a THP is corrupted otherwise
4593 * the corrupted subpage should trigger SIGBUS as expected.
6229 * operation. The target subpage will be processed last to keep its
6241 /* Process target subpage last to keep its cache lines hot */
6245 /* If target subpage in first half of huge page */
6256 /* If target subpage in second half of huge page */
6269 * towards the target subpage
6393 struct page *subpage; local
6396 subpage
[all...]
H A Dhugetlb.c3953 struct page *subpage; local
3996 subpage = folio_page(folio, i);
3997 inner_folio = page_folio(subpage);
4002 prep_compound_page(subpage, target_hstate->order);
/linux-master/drivers/target/
H A Dtarget_core_spc.c959 uint8_t subpage; member in struct:__anon673
962 { .page = 0x01, .subpage = 0x00, .emulate = spc_modesense_rwrecovery },
963 { .page = 0x08, .subpage = 0x00, .emulate = spc_modesense_caching },
964 { .page = 0x0a, .subpage = 0x00, .emulate = spc_modesense_control },
965 { .page = 0x1c, .subpage = 0x00, .emulate = spc_modesense_informational_exceptions },
1029 u8 subpage = cdb[3]; local
1087 if (subpage != 0x00 && subpage != 0xff) {
1088 pr_warn("MODE_SENSE: Invalid subpage code: 0x%02x\n", subpage);
1149 u8 page, subpage; local
[all...]
/linux-master/drivers/mtd/nand/onenand/
H A Donenand_base.c1711 int column, subpage; local
1740 subpage = thislen < mtd->writesize;
1741 if (subpage) {
1755 onenand_update_bufferram(mtd, to, !subpage);
1758 onenand_update_bufferram(mtd, to + this->writesize, !subpage);
1801 int written = 0, column, thislen = 0, subpage = 0; local
1846 subpage = thislen < mtd->writesize;
1847 if (subpage) {
1927 onenand_update_bufferram(mtd, to, !ret && !subpage);
1951 prev_subpage = subpage;
[all...]
/linux-master/drivers/hid/
H A Dwacom_wac.c1875 int subpage = (usage & 0xFF00) << 8; local
1878 if (subpage == WACOM_HID_SP_PAD ||
1879 subpage == WACOM_HID_SP_BUTTON ||
1880 subpage == WACOM_HID_SP_DIGITIZER ||
1881 subpage == WACOM_HID_SP_DIGITIZERINFO ||
1896 if (subpage == HID_UP_UNDEFINED)
1897 subpage = HID_UP_DIGITIZER;
1899 return subpage | subusage;
1903 int subpage = (usage & 0xFF00) << 8; local
1909 if (subpage
[all...]
/linux-master/include/scsi/
H A Dscsi_device.h453 int subpage, unsigned char *buffer, int len, int timeout,
/linux-master/fs/ceph/
H A Daddr.c1528 struct page *subpage, void *fsdata)
1530 struct folio *folio = page_folio(subpage);
1526 ceph_write_end(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *subpage, void *fsdata) argument
/linux-master/drivers/scsi/
H A Dscsi_lib.c2247 * @subpage: sub-page of the mode page being requested
2259 scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage, int subpage, argument
2293 cmd[3] = subpage;
/linux-master/drivers/mtd/nand/raw/
H A Dnand_base.c4244 * nand_write_subpage_hwecc - [REPLACEABLE] hardware ECC based subpage write
4246 * @offset: column address of subpage within the page
4287 /* if oob_required, preserve OOB metadata of written subpage */
4398 int status, subpage; local
4402 subpage = offset || (data_len < mtd->writesize);
4404 subpage = 0;
4409 else if (subpage)
6492 /* Allow subpage writes up to ecc.steps. Not possible for MLC flash */
6510 /* Large page NAND with SOFT_ECC should support subpage reads */

Completed in 800 milliseconds