Lines Matching refs:shm_file
230 struct file *shm_file; in shm_destroy() local
232 shm_file = shp->shm_file; in shm_destroy()
233 shp->shm_file = NULL; in shm_destroy()
237 if (!is_file_hugepages(shm_file)) in shm_destroy()
238 shmem_lock(shm_file, 0, shp->mlock_user); in shm_destroy()
240 user_shm_unlock(i_size_read(file_inode(shm_file)), in shm_destroy()
242 fput(shm_file); in shm_destroy()
593 shp->shm_file = file; in newseg()
758 inode = file_inode(shp->shm_file); in shm_add_rss_swap()
760 if (is_file_hugepages(shp->shm_file)) { in shm_add_rss_swap()
762 struct hstate *h = hstate_file(shp->shm_file); in shm_add_rss_swap()
1005 struct file *shm_file; in SYSCALL_DEFINE3() local
1040 shm_file = shp->shm_file; in SYSCALL_DEFINE3()
1041 if (is_file_hugepages(shm_file)) in SYSCALL_DEFINE3()
1046 err = shmem_lock(shm_file, 1, user); in SYSCALL_DEFINE3()
1057 shmem_lock(shm_file, 0, shp->mlock_user); in SYSCALL_DEFINE3()
1060 get_file(shm_file); in SYSCALL_DEFINE3()
1063 shmem_unlock_mapping(shm_file->f_mapping); in SYSCALL_DEFINE3()
1065 fput(shm_file); in SYSCALL_DEFINE3()
1167 path = shp->shm_file->f_path; in do_shmat()
1182 is_file_hugepages(shp->shm_file) ? in do_shmat()
1193 file->f_mapping = shp->shm_file->f_mapping; in do_shmat()
1196 sfd->file = shp->shm_file; in do_shmat()