Lines Matching refs:shmem_falloc

92 struct shmem_falloc {  struct
809 struct shmem_falloc *shmem_falloc; in shmem_writepage() local
811 shmem_falloc = inode->i_private; in shmem_writepage()
812 if (shmem_falloc && in shmem_writepage()
813 !shmem_falloc->waitq && in shmem_writepage()
814 index >= shmem_falloc->start && in shmem_writepage()
815 index < shmem_falloc->next) in shmem_writepage()
816 shmem_falloc->nr_unswapped++; in shmem_writepage()
818 shmem_falloc = NULL; in shmem_writepage()
820 if (shmem_falloc) in shmem_writepage()
1313 struct shmem_falloc *shmem_falloc; in shmem_fault() local
1316 shmem_falloc = inode->i_private; in shmem_fault()
1317 if (shmem_falloc && in shmem_fault()
1318 shmem_falloc->waitq && in shmem_fault()
1319 vmf->pgoff >= shmem_falloc->start && in shmem_fault()
1320 vmf->pgoff < shmem_falloc->next) { in shmem_fault()
1332 shmem_falloc_waitq = shmem_falloc->waitq; in shmem_fault()
2071 struct shmem_falloc shmem_falloc; in shmem_fallocate() local
2092 shmem_falloc.waitq = &shmem_falloc_waitq; in shmem_fallocate()
2093 shmem_falloc.start = unmap_start >> PAGE_SHIFT; in shmem_fallocate()
2094 shmem_falloc.next = (unmap_end + 1) >> PAGE_SHIFT; in shmem_fallocate()
2096 inode->i_private = &shmem_falloc; in shmem_fallocate()
2131 shmem_falloc.waitq = NULL; in shmem_fallocate()
2132 shmem_falloc.start = start; in shmem_fallocate()
2133 shmem_falloc.next = start; in shmem_fallocate()
2134 shmem_falloc.nr_falloced = 0; in shmem_fallocate()
2135 shmem_falloc.nr_unswapped = 0; in shmem_fallocate()
2137 inode->i_private = &shmem_falloc; in shmem_fallocate()
2149 else if (shmem_falloc.nr_unswapped > shmem_falloc.nr_falloced) in shmem_fallocate()
2166 shmem_falloc.next++; in shmem_fallocate()
2168 shmem_falloc.nr_falloced++; in shmem_fallocate()