Lines Matching defs:memfd
8 #include <linux/memfd.h>
3434 * memfd_pin_folios() - pin folios associated with a memfd
3435 * @memfd: the memfd whose folios are to be pinned
3436 * @start: the first memfd offset
3437 * @end: the last memfd offset (inclusive)
3442 * Attempt to pin folios associated with a memfd in the contiguous range
3443 * [start, end]. Given that a memfd is either backed by shmem or hugetlb,
3459 long memfd_pin_folios(struct file *memfd, loff_t start, loff_t end,
3474 if (!memfd)
3477 if (!shmem_file(memfd) && !is_file_hugepages(memfd))
3480 if (end >= i_size_read(file_inode(memfd)))
3483 if (is_file_hugepages(memfd)) {
3484 h = hstate_file(memfd);
3493 if (is_file_hugepages(memfd)) {
3506 nr_found = filemap_get_folios_contig(memfd->f_mapping,
3535 folio = memfd_alloc_folio(memfd, start_idx);