Lines Matching refs:shm_file
212 struct file *shm_file; in shm_destroy() local
214 shm_file = shp->shm_file; in shm_destroy()
215 shp->shm_file = NULL; in shm_destroy()
219 if (!is_file_hugepages(shm_file)) in shm_destroy()
220 shmem_lock(shm_file, 0, shp->mlock_user); in shm_destroy()
222 user_shm_unlock(file_inode(shm_file)->i_size, shp->mlock_user); in shm_destroy()
223 fput(shm_file); in shm_destroy()
558 shp->shm_file = file; in newseg()
723 inode = file_inode(shp->shm_file); in shm_add_rss_swap()
725 if (is_file_hugepages(shp->shm_file)) { in shm_add_rss_swap()
727 struct hstate *h = hstate_file(shp->shm_file); in shm_add_rss_swap()
970 struct file *shm_file; in SYSCALL_DEFINE3() local
1005 shm_file = shp->shm_file; in SYSCALL_DEFINE3()
1006 if (is_file_hugepages(shm_file)) in SYSCALL_DEFINE3()
1011 err = shmem_lock(shm_file, 1, user); in SYSCALL_DEFINE3()
1022 shmem_lock(shm_file, 0, shp->mlock_user); in SYSCALL_DEFINE3()
1025 get_file(shm_file); in SYSCALL_DEFINE3()
1028 shmem_unlock_mapping(shm_file->f_mapping); in SYSCALL_DEFINE3()
1030 fput(shm_file); in SYSCALL_DEFINE3()
1132 path = shp->shm_file->f_path; in do_shmat()
1147 is_file_hugepages(shp->shm_file) ? in do_shmat()
1158 file->f_mapping = shp->shm_file->f_mapping; in do_shmat()
1161 sfd->file = shp->shm_file; in do_shmat()