Lines Matching refs:shm_file
57 struct file *shm_file; member
290 if (shp->shm_file != sfd->file) { in __shm_open()
333 struct file *shm_file; in shm_destroy() local
335 shm_file = shp->shm_file; in shm_destroy()
336 shp->shm_file = NULL; in shm_destroy()
340 if (!is_file_hugepages(shm_file)) in shm_destroy()
341 shmem_lock(shm_file, 0, shp->mlock_ucounts); in shm_destroy()
342 fput(shm_file); in shm_destroy()
776 shp->shm_file = file; in newseg()
939 inode = file_inode(shp->shm_file); in shm_add_rss_swap()
941 if (is_file_hugepages(shp->shm_file)) { in shm_add_rss_swap()
943 struct hstate *h = hstate_file(shp->shm_file); in shm_add_rss_swap()
1169 struct file *shm_file; in shmctl_do_lock() local
1206 shm_file = shp->shm_file; in shmctl_do_lock()
1207 if (is_file_hugepages(shm_file)) in shmctl_do_lock()
1213 err = shmem_lock(shm_file, 1, ucounts); in shmctl_do_lock()
1224 shmem_lock(shm_file, 0, shp->mlock_ucounts); in shmctl_do_lock()
1227 get_file(shm_file); in shmctl_do_lock()
1230 shmem_unlock_mapping(shm_file->f_mapping); in shmctl_do_lock()
1232 fput(shm_file); in shmctl_do_lock()
1614 base = get_file(shp->shm_file); in do_shmat()