Lines Matching defs:device

168  * swapon tell device that all the old swap contents can be discarded,
169 * to allow the swap device to optimize its wear-levelling.
238 * swap allocation tell device that a cluster of swap can now be discarded,
239 * to allow the swap device to optimize its wear-levelling.
371 * Determine the locking method in use for this device. Return
1280 * Check whether swap entry is valid in the swap device. If so,
1282 * via preventing the swap device from being swapoff, until
1309 * swap device which has been swapoff. And in do_swap_page(), after
1310 * the page is read from the swap device, the PTE is verified not
1311 * changed with the page table locked to check whether the swap device
1376 * Caller has made sure that the swap device corresponding to entry
1474 * Sort swap entries by swap device, so each lock is only taken once.
1825 * Find the swap type that corresponds to given device (if any).
1827 * @offset - number of the PAGE_SIZE-sized block of the device, starting
1832 int swap_type_of(dev_t device, sector_t offset)
1836 if (!device)
1846 if (device == sis->bdev->bd_dev) {
1859 int find_first_swap(dev_t *device)
1869 *device = sis->bdev->bd_dev;
2420 * If the swapfile is an S_ISBLK block device, a single extent is installed.
2435 * prevents users from writing to the swap device, which will corrupt memory.
2667 p->flags &= ~SWP_VALID; /* mark swap device as invalid */
2980 * Find out how many pages are allowed for a single swap device. There
3166 * backing device queue supports DISCARD operations.
3369 * swap device.
3656 * __swap_duplicate(): the swap device may be swapoff