Lines Matching refs:shmem_falloc
103 struct shmem_falloc { struct
1337 struct shmem_falloc *shmem_falloc; in shmem_writepage() local
1339 shmem_falloc = inode->i_private; in shmem_writepage()
1340 if (shmem_falloc && in shmem_writepage()
1341 !shmem_falloc->waitq && in shmem_writepage()
1342 index >= shmem_falloc->start && in shmem_writepage()
1343 index < shmem_falloc->next) in shmem_writepage()
1344 shmem_falloc->nr_unswapped++; in shmem_writepage()
1346 shmem_falloc = NULL; in shmem_writepage()
1348 if (shmem_falloc) in shmem_writepage()
2017 struct shmem_falloc *shmem_falloc; in shmem_fault() local
2020 shmem_falloc = inode->i_private; in shmem_fault()
2021 if (shmem_falloc && in shmem_fault()
2022 shmem_falloc->waitq && in shmem_fault()
2023 vmf->pgoff >= shmem_falloc->start && in shmem_fault()
2024 vmf->pgoff < shmem_falloc->next) { in shmem_fault()
2036 shmem_falloc_waitq = shmem_falloc->waitq; in shmem_fault()
2723 struct shmem_falloc shmem_falloc; in shmem_fallocate() local
2744 shmem_falloc.waitq = &shmem_falloc_waitq; in shmem_fallocate()
2745 shmem_falloc.start = unmap_start >> PAGE_SHIFT; in shmem_fallocate()
2746 shmem_falloc.next = (unmap_end + 1) >> PAGE_SHIFT; in shmem_fallocate()
2748 inode->i_private = &shmem_falloc; in shmem_fallocate()
2784 shmem_falloc.waitq = NULL; in shmem_fallocate()
2785 shmem_falloc.start = start; in shmem_fallocate()
2786 shmem_falloc.next = start; in shmem_fallocate()
2787 shmem_falloc.nr_falloced = 0; in shmem_fallocate()
2788 shmem_falloc.nr_unswapped = 0; in shmem_fallocate()
2790 inode->i_private = &shmem_falloc; in shmem_fallocate()
2802 else if (shmem_falloc.nr_unswapped > shmem_falloc.nr_falloced) in shmem_fallocate()
2820 shmem_falloc.next++; in shmem_fallocate()
2822 shmem_falloc.nr_falloced++; in shmem_fallocate()