Lines Matching refs:shm_file
55 struct file *shm_file;
287 if (shp->shm_file != sfd->file) {
330 struct file *shm_file;
332 shm_file = shp->shm_file;
333 shp->shm_file = NULL;
337 if (!is_file_hugepages(shm_file))
338 shmem_lock(shm_file, 0, shp->mlock_ucounts);
339 fput(shm_file);
779 shp->shm_file = file;
942 inode = file_inode(shp->shm_file);
944 if (is_file_hugepages(shp->shm_file)) {
946 struct hstate *h = hstate_file(shp->shm_file);
1172 struct file *shm_file;
1209 shm_file = shp->shm_file;
1210 if (is_file_hugepages(shm_file))
1216 err = shmem_lock(shm_file, 1, ucounts);
1227 shmem_lock(shm_file, 0, shp->mlock_ucounts);
1230 get_file(shm_file);
1233 shmem_unlock_mapping(shm_file->f_mapping);
1235 fput(shm_file);
1617 base = get_file(shp->shm_file);