Lines Matching refs:shmem_falloc

104 struct shmem_falloc {  struct
1477 struct shmem_falloc *shmem_falloc; in shmem_writepage() local
1479 shmem_falloc = inode->i_private; in shmem_writepage()
1480 if (shmem_falloc && in shmem_writepage()
1481 !shmem_falloc->waitq && in shmem_writepage()
1482 index >= shmem_falloc->start && in shmem_writepage()
1483 index < shmem_falloc->next) in shmem_writepage()
1484 shmem_falloc->nr_unswapped++; in shmem_writepage()
1486 shmem_falloc = NULL; in shmem_writepage()
1488 if (shmem_falloc) in shmem_writepage()
2186 struct shmem_falloc *shmem_falloc; in shmem_fault() local
2189 shmem_falloc = inode->i_private; in shmem_fault()
2190 if (shmem_falloc && in shmem_fault()
2191 shmem_falloc->waitq && in shmem_fault()
2192 vmf->pgoff >= shmem_falloc->start && in shmem_fault()
2193 vmf->pgoff < shmem_falloc->next) { in shmem_fault()
2203 shmem_falloc_waitq = shmem_falloc->waitq; in shmem_fault()
3032 struct shmem_falloc shmem_falloc; in shmem_fallocate() local
3053 shmem_falloc.waitq = &shmem_falloc_waitq; in shmem_fallocate()
3054 shmem_falloc.start = (u64)unmap_start >> PAGE_SHIFT; in shmem_fallocate()
3055 shmem_falloc.next = (unmap_end + 1) >> PAGE_SHIFT; in shmem_fallocate()
3057 inode->i_private = &shmem_falloc; in shmem_fallocate()
3093 shmem_falloc.waitq = NULL; in shmem_fallocate()
3094 shmem_falloc.start = start; in shmem_fallocate()
3095 shmem_falloc.next = start; in shmem_fallocate()
3096 shmem_falloc.nr_falloced = 0; in shmem_fallocate()
3097 shmem_falloc.nr_unswapped = 0; in shmem_fallocate()
3099 inode->i_private = &shmem_falloc; in shmem_fallocate()
3120 else if (shmem_falloc.nr_unswapped > shmem_falloc.nr_falloced) in shmem_fallocate()
3151 shmem_falloc.nr_falloced += index - shmem_falloc.next; in shmem_fallocate()
3152 shmem_falloc.next = index; in shmem_fallocate()