Lines Matching refs:shmem_falloc

101 struct shmem_falloc {  struct
1395 struct shmem_falloc *shmem_falloc; in shmem_writepage() local
1397 shmem_falloc = inode->i_private; in shmem_writepage()
1398 if (shmem_falloc && in shmem_writepage()
1399 !shmem_falloc->waitq && in shmem_writepage()
1400 index >= shmem_falloc->start && in shmem_writepage()
1401 index < shmem_falloc->next) in shmem_writepage()
1402 shmem_falloc->nr_unswapped++; in shmem_writepage()
1404 shmem_falloc = NULL; in shmem_writepage()
1406 if (shmem_falloc) in shmem_writepage()
2072 struct shmem_falloc *shmem_falloc; in shmem_fault() local
2075 shmem_falloc = inode->i_private; in shmem_fault()
2076 if (shmem_falloc && in shmem_fault()
2077 shmem_falloc->waitq && in shmem_fault()
2078 vmf->pgoff >= shmem_falloc->start && in shmem_fault()
2079 vmf->pgoff < shmem_falloc->next) { in shmem_fault()
2089 shmem_falloc_waitq = shmem_falloc->waitq; in shmem_fault()
2644 struct shmem_falloc shmem_falloc; in shmem_fallocate() local
2665 shmem_falloc.waitq = &shmem_falloc_waitq; in shmem_fallocate()
2666 shmem_falloc.start = (u64)unmap_start >> PAGE_SHIFT; in shmem_fallocate()
2667 shmem_falloc.next = (unmap_end + 1) >> PAGE_SHIFT; in shmem_fallocate()
2669 inode->i_private = &shmem_falloc; in shmem_fallocate()
2705 shmem_falloc.waitq = NULL; in shmem_fallocate()
2706 shmem_falloc.start = start; in shmem_fallocate()
2707 shmem_falloc.next = start; in shmem_fallocate()
2708 shmem_falloc.nr_falloced = 0; in shmem_fallocate()
2709 shmem_falloc.nr_unswapped = 0; in shmem_fallocate()
2711 inode->i_private = &shmem_falloc; in shmem_fallocate()
2732 else if (shmem_falloc.nr_unswapped > shmem_falloc.nr_falloced) in shmem_fallocate()
2765 shmem_falloc.nr_falloced += index - shmem_falloc.next; in shmem_fallocate()
2766 shmem_falloc.next = index; in shmem_fallocate()