Lines Matching refs:shmem_falloc
90 struct shmem_falloc { struct
787 struct shmem_falloc *shmem_falloc; in shmem_writepage() local
789 shmem_falloc = inode->i_private; in shmem_writepage()
790 if (shmem_falloc && in shmem_writepage()
791 !shmem_falloc->waitq && in shmem_writepage()
792 index >= shmem_falloc->start && in shmem_writepage()
793 index < shmem_falloc->next) in shmem_writepage()
794 shmem_falloc->nr_unswapped++; in shmem_writepage()
796 shmem_falloc = NULL; in shmem_writepage()
798 if (shmem_falloc) in shmem_writepage()
1297 struct shmem_falloc *shmem_falloc; in shmem_fault() local
1300 shmem_falloc = inode->i_private; in shmem_fault()
1301 if (shmem_falloc && in shmem_fault()
1302 shmem_falloc->waitq && in shmem_fault()
1303 vmf->pgoff >= shmem_falloc->start && in shmem_fault()
1304 vmf->pgoff < shmem_falloc->next) { in shmem_fault()
1316 shmem_falloc_waitq = shmem_falloc->waitq; in shmem_fault()
2055 struct shmem_falloc shmem_falloc; in shmem_fallocate() local
2076 shmem_falloc.waitq = &shmem_falloc_waitq; in shmem_fallocate()
2077 shmem_falloc.start = unmap_start >> PAGE_SHIFT; in shmem_fallocate()
2078 shmem_falloc.next = (unmap_end + 1) >> PAGE_SHIFT; in shmem_fallocate()
2080 inode->i_private = &shmem_falloc; in shmem_fallocate()
2115 shmem_falloc.waitq = NULL; in shmem_fallocate()
2116 shmem_falloc.start = start; in shmem_fallocate()
2117 shmem_falloc.next = start; in shmem_fallocate()
2118 shmem_falloc.nr_falloced = 0; in shmem_fallocate()
2119 shmem_falloc.nr_unswapped = 0; in shmem_fallocate()
2121 inode->i_private = &shmem_falloc; in shmem_fallocate()
2133 else if (shmem_falloc.nr_unswapped > shmem_falloc.nr_falloced) in shmem_fallocate()
2150 shmem_falloc.next++; in shmem_fallocate()
2152 shmem_falloc.nr_falloced++; in shmem_fallocate()