Lines Matching refs:shm_file
55 struct file *shm_file; member
289 if (shp->shm_file != sfd->file) { in __shm_open()
324 struct file *shm_file; in shm_destroy() local
326 shm_file = shp->shm_file; in shm_destroy()
327 shp->shm_file = NULL; in shm_destroy()
331 if (!is_file_hugepages(shm_file)) in shm_destroy()
332 shmem_lock(shm_file, 0, shp->mlock_ucounts); in shm_destroy()
334 user_shm_unlock(i_size_read(file_inode(shm_file)), in shm_destroy()
336 fput(shm_file); in shm_destroy()
767 shp->shm_file = file; in newseg()
932 inode = file_inode(shp->shm_file); in shm_add_rss_swap()
934 if (is_file_hugepages(shp->shm_file)) { in shm_add_rss_swap()
936 struct hstate *h = hstate_file(shp->shm_file); in shm_add_rss_swap()
1162 struct file *shm_file; in shmctl_do_lock() local
1199 shm_file = shp->shm_file; in shmctl_do_lock()
1200 if (is_file_hugepages(shm_file)) in shmctl_do_lock()
1206 err = shmem_lock(shm_file, 1, ucounts); in shmctl_do_lock()
1217 shmem_lock(shm_file, 0, shp->mlock_ucounts); in shmctl_do_lock()
1220 get_file(shm_file); in shmctl_do_lock()
1223 shmem_unlock_mapping(shm_file->f_mapping); in shmctl_do_lock()
1225 fput(shm_file); in shmctl_do_lock()
1607 base = get_file(shp->shm_file); in do_shmat()