Lines Matching refs:shmem_falloc

104 struct shmem_falloc {  struct
1499 struct shmem_falloc *shmem_falloc; in shmem_writepage() local
1501 shmem_falloc = inode->i_private; in shmem_writepage()
1502 if (shmem_falloc && in shmem_writepage()
1503 !shmem_falloc->waitq && in shmem_writepage()
1504 index >= shmem_falloc->start && in shmem_writepage()
1505 index < shmem_falloc->next) in shmem_writepage()
1506 shmem_falloc->nr_unswapped++; in shmem_writepage()
1508 shmem_falloc = NULL; in shmem_writepage()
1510 if (shmem_falloc) in shmem_writepage()
2208 struct shmem_falloc *shmem_falloc; in shmem_fault() local
2211 shmem_falloc = inode->i_private; in shmem_fault()
2212 if (shmem_falloc && in shmem_fault()
2213 shmem_falloc->waitq && in shmem_fault()
2214 vmf->pgoff >= shmem_falloc->start && in shmem_fault()
2215 vmf->pgoff < shmem_falloc->next) { in shmem_fault()
2225 shmem_falloc_waitq = shmem_falloc->waitq; in shmem_fault()
3051 struct shmem_falloc shmem_falloc; in shmem_fallocate() local
3072 shmem_falloc.waitq = &shmem_falloc_waitq; in shmem_fallocate()
3073 shmem_falloc.start = (u64)unmap_start >> PAGE_SHIFT; in shmem_fallocate()
3074 shmem_falloc.next = (unmap_end + 1) >> PAGE_SHIFT; in shmem_fallocate()
3076 inode->i_private = &shmem_falloc; in shmem_fallocate()
3112 shmem_falloc.waitq = NULL; in shmem_fallocate()
3113 shmem_falloc.start = start; in shmem_fallocate()
3114 shmem_falloc.next = start; in shmem_fallocate()
3115 shmem_falloc.nr_falloced = 0; in shmem_fallocate()
3116 shmem_falloc.nr_unswapped = 0; in shmem_fallocate()
3118 inode->i_private = &shmem_falloc; in shmem_fallocate()
3139 else if (shmem_falloc.nr_unswapped > shmem_falloc.nr_falloced) in shmem_fallocate()
3170 shmem_falloc.nr_falloced += index - shmem_falloc.next; in shmem_fallocate()
3171 shmem_falloc.next = index; in shmem_fallocate()