Lines Matching refs:shm_file
55 struct file *shm_file; member
287 if (shp->shm_file != sfd->file) { in __shm_open()
330 struct file *shm_file; in shm_destroy() local
332 shm_file = shp->shm_file; in shm_destroy()
333 shp->shm_file = NULL; in shm_destroy()
337 if (!is_file_hugepages(shm_file)) in shm_destroy()
338 shmem_lock(shm_file, 0, shp->mlock_ucounts); in shm_destroy()
339 fput(shm_file); in shm_destroy()
779 shp->shm_file = file; in newseg()
942 inode = file_inode(shp->shm_file); in shm_add_rss_swap()
944 if (is_file_hugepages(shp->shm_file)) { in shm_add_rss_swap()
946 struct hstate *h = hstate_file(shp->shm_file); in shm_add_rss_swap()
1172 struct file *shm_file; in shmctl_do_lock() local
1209 shm_file = shp->shm_file; in shmctl_do_lock()
1210 if (is_file_hugepages(shm_file)) in shmctl_do_lock()
1216 err = shmem_lock(shm_file, 1, ucounts); in shmctl_do_lock()
1227 shmem_lock(shm_file, 0, shp->mlock_ucounts); in shmctl_do_lock()
1230 get_file(shm_file); in shmctl_do_lock()
1233 shmem_unlock_mapping(shm_file->f_mapping); in shmctl_do_lock()
1235 fput(shm_file); in shmctl_do_lock()
1617 base = get_file(shp->shm_file); in do_shmat()