Lines Matching refs:shm_file
55 struct file *shm_file; member
246 if (shp->shm_file != sfd->file) { in __shm_open()
281 struct file *shm_file; in shm_destroy() local
283 shm_file = shp->shm_file; in shm_destroy()
284 shp->shm_file = NULL; in shm_destroy()
288 if (!is_file_hugepages(shm_file)) in shm_destroy()
289 shmem_lock(shm_file, 0, shp->mlock_user); in shm_destroy()
291 user_shm_unlock(i_size_read(file_inode(shm_file)), in shm_destroy()
293 fput(shm_file); in shm_destroy()
675 shp->shm_file = file; in newseg()
837 inode = file_inode(shp->shm_file); in shm_add_rss_swap()
839 if (is_file_hugepages(shp->shm_file)) { in shm_add_rss_swap()
841 struct hstate *h = hstate_file(shp->shm_file); in shm_add_rss_swap()
1067 struct file *shm_file; in shmctl_do_lock() local
1104 shm_file = shp->shm_file; in shmctl_do_lock()
1105 if (is_file_hugepages(shm_file)) in shmctl_do_lock()
1111 err = shmem_lock(shm_file, 1, user); in shmctl_do_lock()
1122 shmem_lock(shm_file, 0, shp->mlock_user); in shmctl_do_lock()
1125 get_file(shm_file); in shmctl_do_lock()
1128 shmem_unlock_mapping(shm_file->f_mapping); in shmctl_do_lock()
1130 fput(shm_file); in shmctl_do_lock()
1513 base = get_file(shp->shm_file); in do_shmat()