Lines Matching refs:shmem_falloc
101 struct shmem_falloc { struct
1323 struct shmem_falloc *shmem_falloc; in shmem_writepage() local
1325 shmem_falloc = inode->i_private; in shmem_writepage()
1326 if (shmem_falloc && in shmem_writepage()
1327 !shmem_falloc->waitq && in shmem_writepage()
1328 index >= shmem_falloc->start && in shmem_writepage()
1329 index < shmem_falloc->next) in shmem_writepage()
1330 shmem_falloc->nr_unswapped++; in shmem_writepage()
1332 shmem_falloc = NULL; in shmem_writepage()
1334 if (shmem_falloc) in shmem_writepage()
1978 struct shmem_falloc *shmem_falloc; in shmem_fault() local
1981 shmem_falloc = inode->i_private; in shmem_fault()
1982 if (shmem_falloc && in shmem_fault()
1983 shmem_falloc->waitq && in shmem_fault()
1984 vmf->pgoff >= shmem_falloc->start && in shmem_fault()
1985 vmf->pgoff < shmem_falloc->next) { in shmem_fault()
1997 shmem_falloc_waitq = shmem_falloc->waitq; in shmem_fault()
2644 struct shmem_falloc shmem_falloc; in shmem_fallocate() local
2665 shmem_falloc.waitq = &shmem_falloc_waitq; in shmem_fallocate()
2666 shmem_falloc.start = unmap_start >> PAGE_SHIFT; in shmem_fallocate()
2667 shmem_falloc.next = (unmap_end + 1) >> PAGE_SHIFT; in shmem_fallocate()
2669 inode->i_private = &shmem_falloc; in shmem_fallocate()
2705 shmem_falloc.waitq = NULL; in shmem_fallocate()
2706 shmem_falloc.start = start; in shmem_fallocate()
2707 shmem_falloc.next = start; in shmem_fallocate()
2708 shmem_falloc.nr_falloced = 0; in shmem_fallocate()
2709 shmem_falloc.nr_unswapped = 0; in shmem_fallocate()
2711 inode->i_private = &shmem_falloc; in shmem_fallocate()
2723 else if (shmem_falloc.nr_unswapped > shmem_falloc.nr_falloced) in shmem_fallocate()
2741 shmem_falloc.next++; in shmem_fallocate()
2743 shmem_falloc.nr_falloced++; in shmem_fallocate()