Lines Matching refs:shmem_falloc
102 struct shmem_falloc { struct
1403 struct shmem_falloc *shmem_falloc; in shmem_writepage() local
1405 shmem_falloc = inode->i_private; in shmem_writepage()
1406 if (shmem_falloc && in shmem_writepage()
1407 !shmem_falloc->waitq && in shmem_writepage()
1408 index >= shmem_falloc->start && in shmem_writepage()
1409 index < shmem_falloc->next) in shmem_writepage()
1410 shmem_falloc->nr_unswapped++; in shmem_writepage()
1412 shmem_falloc = NULL; in shmem_writepage()
1414 if (shmem_falloc) in shmem_writepage()
2065 struct shmem_falloc *shmem_falloc; in shmem_fault() local
2068 shmem_falloc = inode->i_private; in shmem_fault()
2069 if (shmem_falloc && in shmem_fault()
2070 shmem_falloc->waitq && in shmem_fault()
2071 vmf->pgoff >= shmem_falloc->start && in shmem_fault()
2072 vmf->pgoff < shmem_falloc->next) { in shmem_fault()
2082 shmem_falloc_waitq = shmem_falloc->waitq; in shmem_fault()
2774 struct shmem_falloc shmem_falloc; in shmem_fallocate() local
2795 shmem_falloc.waitq = &shmem_falloc_waitq; in shmem_fallocate()
2796 shmem_falloc.start = (u64)unmap_start >> PAGE_SHIFT; in shmem_fallocate()
2797 shmem_falloc.next = (unmap_end + 1) >> PAGE_SHIFT; in shmem_fallocate()
2799 inode->i_private = &shmem_falloc; in shmem_fallocate()
2835 shmem_falloc.waitq = NULL; in shmem_fallocate()
2836 shmem_falloc.start = start; in shmem_fallocate()
2837 shmem_falloc.next = start; in shmem_fallocate()
2838 shmem_falloc.nr_falloced = 0; in shmem_fallocate()
2839 shmem_falloc.nr_unswapped = 0; in shmem_fallocate()
2841 inode->i_private = &shmem_falloc; in shmem_fallocate()
2853 else if (shmem_falloc.nr_unswapped > shmem_falloc.nr_falloced) in shmem_fallocate()
2871 shmem_falloc.next++; in shmem_fallocate()
2873 shmem_falloc.nr_falloced++; in shmem_fallocate()