Lines Matching refs:shmem_falloc

101 struct shmem_falloc {  struct
1387 struct shmem_falloc *shmem_falloc; in shmem_writepage() local
1389 shmem_falloc = inode->i_private; in shmem_writepage()
1390 if (shmem_falloc && in shmem_writepage()
1391 !shmem_falloc->waitq && in shmem_writepage()
1392 index >= shmem_falloc->start && in shmem_writepage()
1393 index < shmem_falloc->next) in shmem_writepage()
1394 shmem_falloc->nr_unswapped++; in shmem_writepage()
1396 shmem_falloc = NULL; in shmem_writepage()
1398 if (shmem_falloc) in shmem_writepage()
2098 struct shmem_falloc *shmem_falloc; in shmem_fault() local
2101 shmem_falloc = inode->i_private; in shmem_fault()
2102 if (shmem_falloc && in shmem_fault()
2103 shmem_falloc->waitq && in shmem_fault()
2104 vmf->pgoff >= shmem_falloc->start && in shmem_fault()
2105 vmf->pgoff < shmem_falloc->next) { in shmem_fault()
2115 shmem_falloc_waitq = shmem_falloc->waitq; in shmem_fault()
2739 struct shmem_falloc shmem_falloc; in shmem_fallocate() local
2760 shmem_falloc.waitq = &shmem_falloc_waitq; in shmem_fallocate()
2761 shmem_falloc.start = (u64)unmap_start >> PAGE_SHIFT; in shmem_fallocate()
2762 shmem_falloc.next = (unmap_end + 1) >> PAGE_SHIFT; in shmem_fallocate()
2764 inode->i_private = &shmem_falloc; in shmem_fallocate()
2800 shmem_falloc.waitq = NULL; in shmem_fallocate()
2801 shmem_falloc.start = start; in shmem_fallocate()
2802 shmem_falloc.next = start; in shmem_fallocate()
2803 shmem_falloc.nr_falloced = 0; in shmem_fallocate()
2804 shmem_falloc.nr_unswapped = 0; in shmem_fallocate()
2806 inode->i_private = &shmem_falloc; in shmem_fallocate()
2827 else if (shmem_falloc.nr_unswapped > shmem_falloc.nr_falloced) in shmem_fallocate()
2858 shmem_falloc.nr_falloced += index - shmem_falloc.next; in shmem_fallocate()
2859 shmem_falloc.next = index; in shmem_fallocate()