Lines Matching defs:shm_file
56 struct file *shm_file;
288 if (shp->shm_file != sfd->file) {
331 struct file *shm_file;
333 shm_file = shp->shm_file;
334 shp->shm_file = NULL;
338 if (!is_file_hugepages(shm_file))
339 shmem_lock(shm_file, 0, shp->mlock_ucounts);
340 fput(shm_file);
775 shp->shm_file = file;
938 inode = file_inode(shp->shm_file);
940 if (is_file_hugepages(shp->shm_file)) {
942 struct hstate *h = hstate_file(shp->shm_file);
1168 struct file *shm_file;
1205 shm_file = shp->shm_file;
1206 if (is_file_hugepages(shm_file))
1212 err = shmem_lock(shm_file, 1, ucounts);
1223 shmem_lock(shm_file, 0, shp->mlock_ucounts);
1226 get_file(shm_file);
1229 shmem_unlock_mapping(shm_file->f_mapping);
1231 fput(shm_file);
1613 base = get_file(shp->shm_file);