files 86 arch/powerpc/platforms/cell/spufs/coredump.c int n = iterate_fd(current->files, *fd, match_context, NULL); files 182 arch/powerpc/platforms/cell/spufs/inode.c const struct spufs_tree_descr *files, umode_t mode, files 185 arch/powerpc/platforms/cell/spufs/inode.c while (files->name && files->name[0]) { files 187 arch/powerpc/platforms/cell/spufs/inode.c struct dentry *dentry = d_alloc_name(dir, files->name); files 190 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_new_file(dir->d_sb, dentry, files->ops, files 191 arch/powerpc/platforms/cell/spufs/inode.c files->mode & mode, files->size, ctx); files 194 arch/powerpc/platforms/cell/spufs/inode.c files++; files 2666 arch/x86/kernel/cpu/resctrl/rdtgroup.c uint files = 0; files 2718 arch/x86/kernel/cpu/resctrl/rdtgroup.c files = RFTYPE_BASE | BIT(RF_CTRLSHIFT + rtype); files 2719 arch/x86/kernel/cpu/resctrl/rdtgroup.c ret = rdtgroup_add_files(kn, files); files 967 drivers/crypto/hisilicon/qm.c struct debugfs_file *file = qm->debug.files + index; files 109 drivers/crypto/hisilicon/qm.h struct debugfs_file files[DEBUG_FILE_NUM]; files 172 drivers/crypto/hisilicon/zip/zip_main.c struct ctrl_debug_file files[HZIP_DEBUG_FILE_NUM]; files 550 drivers/crypto/hisilicon/zip/zip_main.c spin_lock_init(&ctrl->files[i].lock); files 551 drivers/crypto/hisilicon/zip/zip_main.c ctrl->files[i].ctrl = ctrl; files 552 drivers/crypto/hisilicon/zip/zip_main.c ctrl->files[i].index = i; files 555 drivers/crypto/hisilicon/zip/zip_main.c ctrl->debug_root, ctrl->files + i, files 511 drivers/firmware/efi/libstub/efi-stub-helper.c struct file_info *files; files 555 drivers/firmware/efi/libstub/efi-stub-helper.c nr_files * sizeof(*files), (void **)&files); files 573 drivers/firmware/efi/libstub/efi-stub-helper.c file = &files[i]; files 635 drivers/firmware/efi/libstub/efi-stub-helper.c size = files[j].size; files 644 drivers/firmware/efi/libstub/efi-stub-helper.c status = efi_file_read(files[j].handle, files 655 drivers/firmware/efi/libstub/efi-stub-helper.c efi_file_close(files[j].handle); files 660 drivers/firmware/efi/libstub/efi-stub-helper.c efi_call_early(free_pool, files); files 672 drivers/firmware/efi/libstub/efi-stub-helper.c efi_file_close(files[k].handle); files 674 drivers/firmware/efi/libstub/efi-stub-helper.c efi_call_early(free_pool, files); files 43 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c const struct drm_info_list *files, files 49 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c if (adev->debugfs[i].files == files) { files 62 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c adev->debugfs[adev->debugfs_count].files = files; files 66 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c drm_debugfs_create_files(files, nfiles, files 30 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.h const struct drm_info_list *files; files 39 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.h const struct drm_info_list *files, files 175 drivers/gpu/drm/drm_debugfs.c int drm_debugfs_create_files(const struct drm_info_list *files, int count, files 183 drivers/gpu/drm/drm_debugfs.c u32 features = files[i].driver_features; files 194 drivers/gpu/drm/drm_debugfs.c tmp->dent = debugfs_create_file(files[i].name, files 197 drivers/gpu/drm/drm_debugfs.c tmp->info_ent = &files[i]; files 262 drivers/gpu/drm/drm_debugfs.c int drm_debugfs_remove_files(const struct drm_info_list *files, int count, files 273 drivers/gpu/drm/drm_debugfs.c if (tmp->info_ent == &files[i]) { files 103 drivers/gpu/drm/qxl/qxl_debugfs.c struct drm_info_list *files, files 109 drivers/gpu/drm/qxl/qxl_debugfs.c if (qdev->debugfs[i].files == files) { files 121 drivers/gpu/drm/qxl/qxl_debugfs.c qdev->debugfs[qdev->debugfs_count].files = files; files 125 drivers/gpu/drm/qxl/qxl_debugfs.c drm_debugfs_create_files(files, nfiles, files 188 drivers/gpu/drm/qxl/qxl_drv.h struct drm_info_list *files; files 193 drivers/gpu/drm/qxl/qxl_drv.h struct drm_info_list *files, files 463 drivers/gpu/drm/qxl/qxl_drv.h struct drm_info_list *files, files 1798 drivers/gpu/drm/radeon/radeon.h struct drm_info_list *files; files 1803 drivers/gpu/drm/radeon/radeon.h struct drm_info_list *files, files 1894 drivers/gpu/drm/radeon/radeon_device.c struct drm_info_list *files, files 1900 drivers/gpu/drm/radeon/radeon_device.c if (rdev->debugfs[i].files == files) { files 1913 drivers/gpu/drm/radeon/radeon_device.c rdev->debugfs[rdev->debugfs_count].files = files; files 1917 drivers/gpu/drm/radeon/radeon_device.c drm_debugfs_create_files(files, nfiles, files 516 drivers/infiniband/hw/qib/qib_fs.c static const struct tree_descr files[] = { files 522 drivers/infiniband/hw/qib/qib_fs.c ret = simple_fill_super(sb, QIBFS_MAGIC, files); files 2679 drivers/md/bcache/super.c static const struct attribute *files[] = { files 2712 drivers/md/bcache/super.c sysfs_create_files(bcache_kobj, files)) files 257 drivers/misc/genwqe/card_dev.c unsigned int files = 0; files 265 drivers/misc/genwqe/card_dev.c files++; files 268 drivers/misc/genwqe/card_dev.c return files; files 273 drivers/misc/genwqe/card_dev.c unsigned int files = 0; files 280 drivers/misc/genwqe/card_dev.c files++; files 283 drivers/misc/genwqe/card_dev.c return files; files 769 drivers/misc/mic/scif/scif_api.c lep->files = current->files; files 106 drivers/misc/mic/scif/scif_epd.h struct files_struct *files; files 56 drivers/misc/mic/scif/scif_fd.c if (ep->files == id) files 3520 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c struct t4_debugfs_entry *files, files 3527 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c debugfs_create_file(files[i].name, files[i].mode, files 3529 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c (void *)adap + files[i].data, files 3530 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c files[i].ops); files 66 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h struct t4_debugfs_entry *files, files 706 drivers/net/wireless/marvell/libertas/debugfs.c const struct lbs_debugfs_files *files; files 713 drivers/net/wireless/marvell/libertas/debugfs.c files = &debugfs_files[i]; files 714 drivers/net/wireless/marvell/libertas/debugfs.c priv->debugfs_files[i] = debugfs_create_file(files->name, files 715 drivers/net/wireless/marvell/libertas/debugfs.c files->perm, files 718 drivers/net/wireless/marvell/libertas/debugfs.c &files->fops); files 724 drivers/net/wireless/marvell/libertas/debugfs.c files = &debugfs_events_files[i]; files 725 drivers/net/wireless/marvell/libertas/debugfs.c priv->debugfs_events_files[i] = debugfs_create_file(files->name, files 726 drivers/net/wireless/marvell/libertas/debugfs.c files->perm, files 729 drivers/net/wireless/marvell/libertas/debugfs.c &files->fops); files 735 drivers/net/wireless/marvell/libertas/debugfs.c files = &debugfs_regs_files[i]; files 736 drivers/net/wireless/marvell/libertas/debugfs.c priv->debugfs_regs_files[i] = debugfs_create_file(files->name, files 737 drivers/net/wireless/marvell/libertas/debugfs.c files->perm, files 740 drivers/net/wireless/marvell/libertas/debugfs.c &files->fops); files 287 drivers/net/wireless/rsi/rsi_91x_debugfs.c const struct rsi_dbg_files *files; files 301 drivers/net/wireless/rsi/rsi_91x_debugfs.c files = &dev_debugfs_files[ii]; files 303 drivers/net/wireless/rsi/rsi_91x_debugfs.c debugfs_create_file(files->name, files 304 drivers/net/wireless/rsi/rsi_91x_debugfs.c files->perms, files 307 drivers/net/wireless/rsi/rsi_91x_debugfs.c &files->fops); files 2477 drivers/rapidio/devices/rio_mport_cdev.c unsigned int files = 0; files 2484 drivers/rapidio/devices/rio_mport_cdev.c files++; files 2487 drivers/rapidio/devices/rio_mport_cdev.c return files; files 2923 drivers/tty/tty_io.c i = iterate_fd(p->files, 0, this_tty, tty); files 399 drivers/usb/host/xhci-debugfs.c struct xhci_file_map *files, files 407 drivers/usb/host/xhci-debugfs.c debugfs_create_file(files[i].name, 0444, parent, data, fops); files 371 drivers/usb/mtu3/mtu3_debugfs.c const struct mtu3_file_map *files; files 379 drivers/usb/mtu3/mtu3_debugfs.c files = &mtu3_ep_files[i]; files 381 drivers/usb/mtu3/mtu3_debugfs.c debugfs_create_file(files->name, 0444, dir_ep, files 259 fs/9p/vfs_super.c buf->f_files = rs.files; files 1673 fs/binfmt_elf.c struct memelfnote files; files 1849 fs/binfmt_elf.c if (fill_files_note(&info->files) == 0) files 1850 fs/binfmt_elf.c info->size += notesize(&info->files); files 1882 fs/binfmt_elf.c if (first && info->files.data && files 1883 fs/binfmt_elf.c !writenote(&info->files, cprm)) files 1911 fs/binfmt_elf.c kvfree(info->files.data); files 842 fs/ceph/inode.c ci->i_files = le64_to_cpu(info->files); files 350 fs/ceph/xattr.c XATTR_NAME_CEPH(dir, files, 0), files 551 fs/coredump.c struct file *files[2]; files 553 fs/coredump.c int err = create_pipe_files(files, 0); files 557 fs/coredump.c cp->file = files[1]; files 559 fs/coredump.c err = replace_fd(0, files[0], 0); files 560 fs/coredump.c fput(files[0]); files 43 fs/cramfs/inode.c unsigned long files; files 574 fs/cramfs/inode.c sbi->files = super->fsid.files; files 578 fs/cramfs/inode.c sbi->files = 0; files 691 fs/cramfs/inode.c buf->f_files = CRAMFS_SB(sb)->files; files 1307 fs/exec.c do_close_on_exec(current->files); files 1791 fs/exec.c if (close_on_exec(fd, rcu_dereference_raw(current->files->fdt))) files 1495 fs/ext2/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 1540 fs/ext2/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 1612 fs/ext2/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 2759 fs/ext4/super.c if (sb_dqopt(sb)->files[i]) files 5674 fs/ext4/super.c return sb_dqopt(dquot->dq_sb)->files[dquot->dq_id.type]; files 5932 fs/ext4/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 5979 fs/ext4/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 6016 fs/ext4/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 1765 fs/f2fs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 1823 fs/f2fs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 2018 fs/f2fs/super.c mapping = dqopt->files[cnt]->i_mapping; files 2032 fs/f2fs/super.c inode_lock(dqopt->files[cnt]); files 2033 fs/f2fs/super.c truncate_inode_pages(&dqopt->files[cnt]->i_data, 0); files 2034 fs/f2fs/super.c inode_unlock(dqopt->files[cnt]); files 2077 fs/f2fs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 2147 fs/f2fs/super.c if (!dqopt->files[type]) files 2149 fs/f2fs/super.c f2fs_inode_synced(dqopt->files[type]); files 148 fs/file.c static int expand_fdtable(struct files_struct *files, unsigned int nr) files 149 fs/file.c __releases(files->file_lock) files 150 fs/file.c __acquires(files->file_lock) files 154 fs/file.c spin_unlock(&files->file_lock); files 160 fs/file.c if (atomic_read(&files->count) > 1) files 163 fs/file.c spin_lock(&files->file_lock); files 174 fs/file.c cur_fdt = files_fdtable(files); files 177 fs/file.c rcu_assign_pointer(files->fdt, new_fdt); files 178 fs/file.c if (cur_fdt != &files->fdtab) files 193 fs/file.c static int expand_files(struct files_struct *files, unsigned int nr) files 194 fs/file.c __releases(files->file_lock) files 195 fs/file.c __acquires(files->file_lock) files 201 fs/file.c fdt = files_fdtable(files); files 211 fs/file.c if (unlikely(files->resize_in_progress)) { files 212 fs/file.c spin_unlock(&files->file_lock); files 214 fs/file.c wait_event(files->resize_wait, !files->resize_in_progress); files 215 fs/file.c spin_lock(&files->file_lock); files 220 fs/file.c files->resize_in_progress = true; files 221 fs/file.c expanded = expand_fdtable(files, nr); files 222 fs/file.c files->resize_in_progress = false; files 224 fs/file.c wake_up_all(&files->resize_wait); files 368 fs/file.c static struct fdtable *close_files(struct files_struct * files) files 375 fs/file.c struct fdtable *fdt = rcu_dereference_raw(files->fdt); files 388 fs/file.c filp_close(file, files); files 402 fs/file.c struct files_struct *files; files 405 fs/file.c files = task->files; files 406 fs/file.c if (files) files 407 fs/file.c atomic_inc(&files->count); files 410 fs/file.c return files; files 413 fs/file.c void put_files_struct(struct files_struct *files) files 415 fs/file.c if (atomic_dec_and_test(&files->count)) { files 416 fs/file.c struct fdtable *fdt = close_files(files); files 419 fs/file.c if (fdt != &files->fdtab) files 421 fs/file.c kmem_cache_free(files_cachep, files); files 425 fs/file.c void reset_files_struct(struct files_struct *files) files 430 fs/file.c old = tsk->files; files 432 fs/file.c tsk->files = files; files 439 fs/file.c struct files_struct * files = tsk->files; files 441 fs/file.c if (files) { files 443 fs/file.c tsk->files = NULL; files 445 fs/file.c put_files_struct(files); files 480 fs/file.c int __alloc_fd(struct files_struct *files, files 487 fs/file.c spin_lock(&files->file_lock); files 489 fs/file.c fdt = files_fdtable(files); files 491 fs/file.c if (fd < files->next_fd) files 492 fs/file.c fd = files->next_fd; files 505 fs/file.c error = expand_files(files, fd); files 516 fs/file.c if (start <= files->next_fd) files 517 fs/file.c files->next_fd = fd + 1; files 534 fs/file.c spin_unlock(&files->file_lock); files 540 fs/file.c return __alloc_fd(current->files, start, rlimit(RLIMIT_NOFILE), flags); files 545 fs/file.c return __alloc_fd(current->files, 0, rlimit(RLIMIT_NOFILE), flags); files 549 fs/file.c static void __put_unused_fd(struct files_struct *files, unsigned int fd) files 551 fs/file.c struct fdtable *fdt = files_fdtable(files); files 553 fs/file.c if (fd < files->next_fd) files 554 fs/file.c files->next_fd = fd; files 559 fs/file.c struct files_struct *files = current->files; files 560 fs/file.c spin_lock(&files->file_lock); files 561 fs/file.c __put_unused_fd(files, fd); files 562 fs/file.c spin_unlock(&files->file_lock); files 587 fs/file.c void __fd_install(struct files_struct *files, unsigned int fd, files 594 fs/file.c if (unlikely(files->resize_in_progress)) { files 596 fs/file.c spin_lock(&files->file_lock); files 597 fs/file.c fdt = files_fdtable(files); files 600 fs/file.c spin_unlock(&files->file_lock); files 605 fs/file.c fdt = rcu_dereference_sched(files->fdt); files 613 fs/file.c __fd_install(current->files, fd, file); files 621 fs/file.c int __close_fd(struct files_struct *files, unsigned fd) files 626 fs/file.c spin_lock(&files->file_lock); files 627 fs/file.c fdt = files_fdtable(files); files 634 fs/file.c __put_unused_fd(files, fd); files 635 fs/file.c spin_unlock(&files->file_lock); files 636 fs/file.c return filp_close(file, files); files 639 fs/file.c spin_unlock(&files->file_lock); files 649 fs/file.c struct files_struct *files = current->files; files 653 fs/file.c spin_lock(&files->file_lock); files 654 fs/file.c fdt = files_fdtable(files); files 661 fs/file.c __put_unused_fd(files, fd); files 662 fs/file.c spin_unlock(&files->file_lock); files 665 fs/file.c return filp_close(file, files); files 668 fs/file.c spin_unlock(&files->file_lock); files 673 fs/file.c void do_close_on_exec(struct files_struct *files) files 679 fs/file.c spin_lock(&files->file_lock); files 683 fs/file.c fdt = files_fdtable(files); files 698 fs/file.c __put_unused_fd(files, fd); files 699 fs/file.c spin_unlock(&files->file_lock); files 700 fs/file.c filp_close(file, files); files 702 fs/file.c spin_lock(&files->file_lock); files 706 fs/file.c spin_unlock(&files->file_lock); files 711 fs/file.c struct files_struct *files = current->files; files 716 fs/file.c file = fcheck_files(files, fd); files 767 fs/file.c struct files_struct *files = current->files; files 770 fs/file.c if (atomic_read(&files->count) == 1) { files 771 fs/file.c file = __fcheck_files(files, fd); files 820 fs/file.c struct files_struct *files = current->files; files 822 fs/file.c spin_lock(&files->file_lock); files 823 fs/file.c fdt = files_fdtable(files); files 828 fs/file.c spin_unlock(&files->file_lock); files 833 fs/file.c struct files_struct *files = current->files; files 837 fs/file.c fdt = files_fdtable(files); files 843 fs/file.c static int do_dup2(struct files_struct *files, files 845 fs/file.c __releases(&files->file_lock) files 864 fs/file.c fdt = files_fdtable(files); files 875 fs/file.c spin_unlock(&files->file_lock); files 878 fs/file.c filp_close(tofree, files); files 883 fs/file.c spin_unlock(&files->file_lock); files 890 fs/file.c struct files_struct *files = current->files; files 893 fs/file.c return __close_fd(files, fd); files 898 fs/file.c spin_lock(&files->file_lock); files 899 fs/file.c err = expand_files(files, fd); files 902 fs/file.c return do_dup2(files, file, fd, flags); files 905 fs/file.c spin_unlock(&files->file_lock); files 913 fs/file.c struct files_struct *files = current->files; files 924 fs/file.c spin_lock(&files->file_lock); files 925 fs/file.c err = expand_files(files, newfd); files 934 fs/file.c return do_dup2(files, file, newfd, flags); files 939 fs/file.c spin_unlock(&files->file_lock); files 951 fs/file.c struct files_struct *files = current->files; files 955 fs/file.c if (!fcheck_files(files, oldfd)) files 996 fs/file.c int iterate_fd(struct files_struct *files, unsigned n, files 1002 fs/file.c if (!files) files 1004 fs/file.c spin_lock(&files->file_lock); files 1005 fs/file.c for (fdt = files_fdtable(files); n < fdt->max_fds; n++) { files 1007 fs/file.c file = rcu_dereference_check_fdtable(files, fdt->fd[n]); files 1014 fs/file.c spin_unlock(&files->file_lock); files 1566 fs/fuse/dir.c inarg.lock_owner = fuse_lock_owner_id(fc, current->files); files 1457 fs/fuse/file.c fl_owner_t owner = current->files; files 405 fs/fuse/inode.c stbuf->f_files = attr->files; files 596 fs/isofs/inode.c int offset = 0, files = 0, de_len; files 603 fs/isofs/inode.c while (files < 3) { files 608 fs/isofs/inode.c files++; files 612 fs/isofs/inode.c return files < 3; files 738 fs/jfs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 783 fs/jfs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 863 fs/jfs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 38 fs/kernfs/file.c struct list_head files; /* goes through kernfs_open_file.list */ files 559 fs/kernfs/file.c list_add_tail(&of->list, &on->files); files 578 fs/kernfs/file.c INIT_LIST_HEAD(&new_on->files); files 805 fs/kernfs/file.c list_for_each_entry(of, &on->files, list) { files 533 fs/libfs.c const struct tree_descr *files) files 562 fs/libfs.c for (i = 0; !files->name || files->name[0]; i++, files++) { files 563 fs/libfs.c if (!files->name) files 572 fs/libfs.c dentry = d_alloc_name(root, files->name); files 580 fs/libfs.c inode->i_mode = S_IFREG | files->mode; files 582 fs/libfs.c inode->i_fop = files->ops; files 555 fs/locks.c fl->fl_owner = current->files; files 1424 fs/locks.c if (fl->fl_owner != current->files && files 1472 fs/locks.c fl.fl_owner = current->files; files 2540 fs/locks.c spin_lock(¤t->files->file_lock); files 2542 fs/locks.c spin_unlock(¤t->files->file_lock); files 2671 fs/locks.c spin_lock(¤t->files->file_lock); files 2673 fs/locks.c spin_unlock(¤t->files->file_lock); files 2921 fs/locks.c struct file *filp, struct files_struct *files) files 2929 fs/locks.c if (fl->fl_owner != files && files 2940 fs/locks.c struct file *filp, struct files_struct *files) files 2951 fs/locks.c __show_fd_locks(f, &ctx->flc_flock, &id, filp, files); files 2952 fs/locks.c __show_fd_locks(f, &ctx->flc_posix, &id, filp, files); files 2953 fs/locks.c __show_fd_locks(f, &ctx->flc_lease, &id, filp, files); files 857 fs/nfs/inode.c l_ctx->lockowner = current->files; files 867 fs/nfs/inode.c if (pos->lockowner != current->files) files 1229 fs/nfs/write.c do_flush |= l_ctx->lockowner != current->files; files 1268 fs/nfsd/nfsctl.c const struct tree_descr *files) files 1276 fs/nfsd/nfsctl.c for (i = 0; files->name && files->name[0]; i++, files++) { files 1277 fs/nfsd/nfsctl.c if (!files->name) files 1279 fs/nfsd/nfsctl.c dentry = d_alloc_name(root, files->name); files 1283 fs/nfsd/nfsctl.c S_IFREG | files->mode); files 1288 fs/nfsd/nfsctl.c inode->i_fop = files->ops; files 1304 fs/nfsd/nfsctl.c const struct tree_descr *files) files 1315 fs/nfsd/nfsctl.c ret = nfsdfs_create_files(dentry, files); files 255 fs/notify/dnotify/dnotify.c fl_owner_t id = current->files; files 169 fs/ocfs2/quota_local.c struct inode *linode = sb_dqopt(sb)->files[type]; files 688 fs/ocfs2/quota_local.c struct inode *lqinode = sb_dqopt(sb)->files[type]; files 796 fs/ocfs2/quota_local.c status = ocfs2_modify_bh(sb_dqopt(sb)->files[type], bh, olq_update_info, files 852 fs/ocfs2/quota_local.c status = ocfs2_modify_bh(sb_dqopt(sb)->files[type], files 862 fs/ocfs2/quota_local.c ocfs2_inode_unlock(sb_dqopt(sb)->files[type], 1); files 898 fs/ocfs2/quota_local.c struct inode *lqinode = sb_dqopt(sb)->files[dquot->dq_id.type]; files 967 fs/ocfs2/quota_local.c struct inode *lqinode = sb_dqopt(sb)->files[type]; files 1099 fs/ocfs2/quota_local.c struct inode *lqinode = sb_dqopt(sb)->files[type]; files 1220 fs/ocfs2/quota_local.c struct inode *lqinode = sb_dqopt(sb)->files[type]; files 1280 fs/ocfs2/quota_local.c INODE_CACHE(sb_dqopt(sb)->files[type]), files 960 fs/ocfs2/super.c inode = igrab(sb->s_dquot.files[type]); files 1190 fs/open.c int retval = __close_fd(current->files, fd); files 62 fs/pipe.c if (pipe->files) files 77 fs/pipe.c if (pipe->files) files 575 fs/pipe.c if (!--pipe->files) { files 743 fs/pipe.c pipe->files = 2; files 799 fs/pipe.c static int __do_pipe_flags(int *fd, struct file **files, int flags) files 807 fs/pipe.c error = create_pipe_files(files, flags); files 829 fs/pipe.c fput(files[0]); files 830 fs/pipe.c fput(files[1]); files 836 fs/pipe.c struct file *files[2]; files 837 fs/pipe.c int error = __do_pipe_flags(fd, files, flags); files 839 fs/pipe.c fd_install(fd[0], files[0]); files 840 fs/pipe.c fd_install(fd[1], files[1]); files 851 fs/pipe.c struct file *files[2]; files 855 fs/pipe.c error = __do_pipe_flags(fd, files, flags); files 858 fs/pipe.c fput(files[0]); files 859 fs/pipe.c fput(files[1]); files 864 fs/pipe.c fd_install(fd[0], files[0]); files 865 fs/pipe.c fd_install(fd[1], files[1]); files 909 fs/pipe.c pipe->files++; files 916 fs/pipe.c pipe->files = 1; files 919 fs/pipe.c inode->i_pipe->files++; files 178 fs/proc/array.c if (p->files) files 179 fs/proc/array.c max_fds = files_fdtable(p->files)->max_fds; files 22 fs/proc/fd.c struct files_struct *files = NULL; files 31 fs/proc/fd.c files = get_files_struct(task); files 34 fs/proc/fd.c if (files) { files 37 fs/proc/fd.c spin_lock(&files->file_lock); files 38 fs/proc/fd.c file = fcheck_files(files, fd); files 40 fs/proc/fd.c struct fdtable *fdt = files_fdtable(files); files 49 fs/proc/fd.c spin_unlock(&files->file_lock); files 50 fs/proc/fd.c put_files_struct(files); files 60 fs/proc/fd.c show_fd_locks(m, file, files); files 86 fs/proc/fd.c struct files_struct *files = get_files_struct(task); files 89 fs/proc/fd.c if (!files) files 93 fs/proc/fd.c file = fcheck_files(files, fd); files 97 fs/proc/fd.c put_files_struct(files); files 149 fs/proc/fd.c struct files_struct *files = NULL; files 155 fs/proc/fd.c files = get_files_struct(task); files 159 fs/proc/fd.c if (files) { files 163 fs/proc/fd.c spin_lock(&files->file_lock); files 164 fs/proc/fd.c fd_file = fcheck_files(files, fd); files 170 fs/proc/fd.c spin_unlock(&files->file_lock); files 171 fs/proc/fd.c put_files_struct(files); files 232 fs/proc/fd.c struct files_struct *files; files 240 fs/proc/fd.c files = get_files_struct(p); files 241 fs/proc/fd.c if (!files) files 246 fs/proc/fd.c fd < files_fdtable(files)->max_fds; files 253 fs/proc/fd.c f = fcheck_files(files, fd); files 270 fs/proc/fd.c put_files_struct(files); files 1437 fs/proc/proc_sysctl.c struct ctl_table *entry, *files; files 1449 fs/proc/proc_sysctl.c files = table; files 1453 fs/proc/proc_sysctl.c files = kcalloc(nr_files + 1, sizeof(struct ctl_table), files 1455 fs/proc/proc_sysctl.c if (!files) files 1458 fs/proc/proc_sysctl.c ctl_table_arg = files; files 1459 fs/proc/proc_sysctl.c for (new = files, entry = table; entry->procname; entry++) { files 1470 fs/proc/proc_sysctl.c header = __register_sysctl_table(set, path, files); files 62 fs/proc/task_nommu.c if (current->files && atomic_read(¤t->files->count) > 1) files 63 fs/proc/task_nommu.c sbytes += kobjsize(current->files); files 65 fs/proc/task_nommu.c bytes += kobjsize(current->files); files 709 fs/quota/dquot.c inode_lock(dqopt->files[cnt]); files 710 fs/quota/dquot.c truncate_inode_pages(&dqopt->files[cnt]->i_data, 0); files 711 fs/quota/dquot.c inode_unlock(dqopt->files[cnt]); files 2216 fs/quota/dquot.c iput(dqopt->files[cnt]); files 2217 fs/quota/dquot.c dqopt->files[cnt] = NULL; files 2240 fs/quota/dquot.c toputinode[cnt] = dqopt->files[cnt]; files 2242 fs/quota/dquot.c dqopt->files[cnt] = NULL; files 2372 fs/quota/dquot.c dqopt->files[type] = igrab(inode); files 2373 fs/quota/dquot.c if (!dqopt->files[type]) files 2401 fs/quota/dquot.c dqopt->files[type] = NULL; files 2431 fs/quota/dquot.c inode = dqopt->files[cnt]; files 2432 fs/quota/dquot.c dqopt->files[cnt] = NULL; files 2550 fs/quota/dquot.c ret = dquot_enable(dqopt->files[type], type, files 2605 fs/quota/dquot.c dquot_enable(dqopt->files[type], type, files 2805 fs/quota/dquot.c tstate->ino = dqopt->files[type]->i_ino; files 2806 fs/quota/dquot.c tstate->blocks = dqopt->files[type]->i_blocks; files 616 fs/quota/quota_tree.c if (!sb_dqopt(dquot->dq_sb)->files[type]) { files 62 fs/quota/quota_v1.c if (!dqopt->files[type]) files 97 fs/quota/quota_v1.c if (sb_dqopt(dquot->dq_sb)->files[type]) files 129 fs/quota/quota_v1.c struct inode *inode = sb_dqopt(sb)->files[type]; files 408 fs/reiserfs/super.c if (sb_dqopt(s)->files[i] && quota_enabled[i]) files 2463 fs/reiserfs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 2494 fs/reiserfs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 2544 fs/reiserfs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; files 429 fs/select.c fdt = files_fdtable(current->files); files 638 fs/select.c fdt = files_fdtable(current->files); files 1189 fs/select.c fdt = files_fdtable(current->files); files 516 fs/splice.c if (pipe->files) files 763 fs/splice.c if (pipe->files) files 83 include/drm/drm_debugfs.h int drm_debugfs_create_files(const struct drm_info_list *files, files 86 include/drm/drm_debugfs.h int drm_debugfs_remove_files(const struct drm_info_list *files, files 89 include/drm/drm_debugfs.h static inline int drm_debugfs_create_files(const struct drm_info_list *files, files 96 include/drm/drm_debugfs.h static inline int drm_debugfs_remove_files(const struct drm_info_list *files, files 520 include/linux/ceph/ceph_fs.h __le64 files, subdirs, rbytes, rfiles, rsubdirs; /* dir stats */ files 73 include/linux/fdtable.h #define rcu_dereference_check_fdtable(files, fdtfd) \ files 74 include/linux/fdtable.h rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock)) files 76 include/linux/fdtable.h #define files_fdtable(files) \ files 77 include/linux/fdtable.h rcu_dereference_check_fdtable((files), (files)->fdt) files 82 include/linux/fdtable.h static inline struct file *__fcheck_files(struct files_struct *files, unsigned int fd) files 84 include/linux/fdtable.h struct fdtable *fdt = rcu_dereference_raw(files->fdt); files 93 include/linux/fdtable.h static inline struct file *fcheck_files(struct files_struct *files, unsigned int fd) files 96 include/linux/fdtable.h !lockdep_is_held(&files->file_lock), files 98 include/linux/fdtable.h return __fcheck_files(files, fd); files 104 include/linux/fdtable.h #define fcheck(fd) fcheck_files(current->files, fd) files 118 include/linux/fdtable.h extern int __alloc_fd(struct files_struct *files, files 120 include/linux/fdtable.h extern void __fd_install(struct files_struct *files, files 122 include/linux/fdtable.h extern int __close_fd(struct files_struct *files, files 1179 include/linux/fs.h struct file *filp, struct files_struct *files); files 1314 include/linux/fs.h struct file *filp, struct files_struct *files) {} files 54 include/linux/pipe_fs_i.h unsigned int files; files 521 include/linux/quota.h struct inode *files[MAXQUOTAS]; /* inodes of quotafiles */ files 908 include/linux/sched.h struct files_struct *files; files 1365 include/linux/syscalls.h extern int __close_fd(struct files_struct *files, unsigned int fd); files 1374 include/linux/syscalls.h return __close_fd(current->files, fd); files 519 include/net/9p/9p.h u64 files; files 17 include/sound/wavefront.h then WavePatch-format files cannot be read/written correctly. files 49 include/uapi/linux/cramfs_fs.h __u32 files; files 241 include/uapi/linux/fuse.h uint64_t files; files 107 init/init_task.c .files = &init_files, files 2770 kernel/bpf/syscall.c struct files_struct *files; files 2788 kernel/bpf/syscall.c files = get_files_struct(task); files 2790 kernel/bpf/syscall.c if (!files) files 2794 kernel/bpf/syscall.c spin_lock(&files->file_lock); files 2795 kernel/bpf/syscall.c file = fcheck_files(files, fd); files 2800 kernel/bpf/syscall.c spin_unlock(&files->file_lock); files 2801 kernel/bpf/syscall.c put_files_struct(files); files 6462 kernel/cgroup/cgroup.c static ssize_t show_delegatable_files(struct cftype *files, char *buf, files 6468 kernel/cgroup/cgroup.c for (cft = files; cft && cft->name[0] != '\0'; cft++) { files 453 kernel/cgroup/legacy_freezer.c static struct cftype files[] = { files 480 kernel/cgroup/legacy_freezer.c .legacy_cftypes = files, files 1454 kernel/fork.c oldf = current->files; files 1467 kernel/fork.c tsk->files = newf; files 2788 kernel/fork.c struct files_struct *fd = current->files; files 2894 kernel/fork.c fd = current->files; files 2895 kernel/fork.c current->files = new_fd; files 2947 kernel/fork.c *displaced = task->files; files 2949 kernel/fork.c task->files = copy; files 69 kernel/kcmp.c if (task->files) files 70 kernel/kcmp.c file = fcheck_files(task->files, idx); files 110 kernel/kcmp.c struct files_struct *files; files 119 kernel/kcmp.c files = get_files_struct(task2); files 120 kernel/kcmp.c if (!files) files 123 kernel/kcmp.c spin_lock(&files->file_lock); files 124 kernel/kcmp.c filp_epoll = fcheck_files(files, slot.efd); files 129 kernel/kcmp.c spin_unlock(&files->file_lock); files 130 kernel/kcmp.c put_files_struct(files); files 203 kernel/kcmp.c ret = kcmp_ptr(task1->files, task2->files, KCMP_FILES); files 296 kernel/sched/cpuacct.c static struct cftype files[] = { files 373 kernel/sched/cpuacct.c .legacy_cftypes = files, files 1005 kernel/trace/trace_probe.c INIT_LIST_HEAD(&tp->event->files); files 1058 kernel/trace/trace_probe.c list_add_tail_rcu(&link->list, &tp->event->files); files 1089 kernel/trace/trace_probe.c if (list_empty(&tp->event->files)) files 237 kernel/trace/trace_probe.h struct list_head files; files 328 kernel/trace/trace_probe.h return !!list_is_singular(&tp->event->files); files 347 kernel/trace/trace_probe.h list_for_each_entry(pos, &(tp)->event->files, list) files 349 kernel/trace/trace_probe.h list_for_each_entry_rcu(pos, &(tp)->event->files, list) files 1915 net/9p/client.c &sb->files, &sb->ffree, &sb->fsid, &sb->namelen); files 1926 net/9p/client.c sb->blocks, sb->bfree, sb->bavail, sb->files, sb->ffree, files 97 net/core/netclassid_cgroup.c fd = iterate_fd(p->files, fd, update_classid_sock, &ctx); files 245 net/core/netprio_cgroup.c iterate_fd(p->files, 0, update_netprio, v); files 650 net/sunrpc/rpc_pipe.c const struct rpc_filelist *files, files 659 net/sunrpc/rpc_pipe.c name.name = files[i].name; files 660 net/sunrpc/rpc_pipe.c name.len = strlen(files[i].name); files 682 net/sunrpc/rpc_pipe.c const struct rpc_filelist *files, files 688 net/sunrpc/rpc_pipe.c __rpc_depopulate(parent, files, start, eof); files 693 net/sunrpc/rpc_pipe.c const struct rpc_filelist *files, files 703 net/sunrpc/rpc_pipe.c dentry = __rpc_lookup_create_exclusive(parent, files[i].name); files 707 net/sunrpc/rpc_pipe.c switch (files[i].mode & S_IFMT) { files 712 net/sunrpc/rpc_pipe.c files[i].mode, files 713 net/sunrpc/rpc_pipe.c files[i].i_fop, files 718 net/sunrpc/rpc_pipe.c files[i].mode, files 728 net/sunrpc/rpc_pipe.c __rpc_depopulate(parent, files, start, eof); files 1147 net/sunrpc/rpc_pipe.c static const struct rpc_filelist files[] = { files 1302 net/sunrpc/rpc_pipe.c struct qstr q = QSTR_INIT(files[RPCAUTH_gssd].name, files 1303 net/sunrpc/rpc_pipe.c strlen(files[RPCAUTH_gssd].name)); files 1375 net/sunrpc/rpc_pipe.c if (rpc_populate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF, NULL)) files 1380 net/sunrpc/rpc_pipe.c __rpc_depopulate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF); files 1402 net/sunrpc/rpc_pipe.c __rpc_depopulate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF); files 138 security/apparmor/apparmorfs.c static struct tree_descr files[] = { {""} }; files 141 security/apparmor/apparmorfs.c error = simple_fill_super(sb, AAFS_MAGIC, files); files 2347 security/apparmor/apparmorfs.c for (fs_file = fs_dir->v.files; fs_file && fs_file->name; ++fs_file) { files 2385 security/apparmor/apparmorfs.c for (fs_file = fs_dir->v.files; fs_file && fs_file->name; ++fs_file) { files 679 security/apparmor/file.c void aa_inherit_files(const struct cred *cred, struct files_struct *files) files 688 security/apparmor/file.c n = iterate_fd(files, 0, match_file, label); files 698 security/apparmor/file.c } while ((n = iterate_fd(files, n, match_file, label)) != 0); files 35 security/apparmor/include/apparmorfs.h struct aa_sfs_entry *files; files 58 security/apparmor/include/apparmorfs.h { .name = (_name), .v_type = AA_SFS_TYPE_DIR, .v.files = (_value) } files 202 security/apparmor/include/file.h void aa_inherit_files(const struct cred *cred, struct files_struct *files); files 689 security/apparmor/lsm.c aa_inherit_files(bprm->cred, current->files); files 42 security/inode.c static const struct tree_descr files[] = {{""}}; files 45 security/inode.c error = simple_fill_super(sb, SECURITYFS_MAGIC, files); files 2452 security/selinux/hooks.c struct files_struct *files) files 2484 security/selinux/hooks.c n = iterate_fd(files, 0, match_file, cred); files 2494 security/selinux/hooks.c } while ((n = iterate_fd(files, n, match_file, cred)) != 0); files 2513 security/selinux/hooks.c flush_unauthorized_files(bprm->cred, current->files); files 1575 security/selinux/selinuxfs.c static const struct tree_descr files[] = { files 1584 security/selinux/selinuxfs.c for (i = 0; i < ARRAY_SIZE(files); i++) { files 1588 security/selinux/selinuxfs.c dentry = d_alloc_name(dir, files[i].name); files 1592 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode); files 1598 security/selinux/selinuxfs.c inode->i_fop = files[i].ops; files 88 tools/io_uring/io_uring-bench.c struct file files[MAX_FDS]; files 125 tools/io_uring/io_uring-bench.c s->fds[i] = s->files[i].real_fd; files 126 tools/io_uring/io_uring-bench.c s->files[i].fixed_fd = i; files 156 tools/io_uring/io_uring-bench.c f = &s->files[0]; files 158 tools/io_uring/io_uring-bench.c f = &s->files[s->cur_file]; files 163 tools/io_uring/io_uring-bench.c f = &s->files[s->cur_file]; files 471 tools/io_uring/io_uring-bench.c struct file *f = &s->files[i]; files 511 tools/io_uring/io_uring-bench.c f = &s->files[s->nr_files]; files 1066 tools/perf/builtin-trace.c } files; files 1076 tools/perf/builtin-trace.c ttrace->files.max = -1; files 1125 tools/perf/builtin-trace.c if (fd > ttrace->files.max) { files 1126 tools/perf/builtin-trace.c struct file *nfiles = realloc(ttrace->files.table, (fd + 1) * sizeof(struct file)); files 1131 tools/perf/builtin-trace.c if (ttrace->files.max != -1) { files 1132 tools/perf/builtin-trace.c memset(nfiles + ttrace->files.max + 1, 0, files 1133 tools/perf/builtin-trace.c (fd - ttrace->files.max) * sizeof(struct file)); files 1138 tools/perf/builtin-trace.c ttrace->files.table = nfiles; files 1139 tools/perf/builtin-trace.c ttrace->files.max = fd; files 1142 tools/perf/builtin-trace.c return ttrace->files.table + fd; files 1204 tools/perf/builtin-trace.c if ((fd > ttrace->files.max || ttrace->files.table[fd].pathname == NULL)) { files 1212 tools/perf/builtin-trace.c return ttrace->files.table[fd].pathname; files 1251 tools/perf/builtin-trace.c if (ttrace && fd >= 0 && fd <= ttrace->files.max) files 1252 tools/perf/builtin-trace.c zfree(&ttrace->files.table[fd].pathname); files 21 tools/perf/util/data.c static void close_dir(struct perf_data_file *files, int nr) files 24 tools/perf/util/data.c close(files[nr].fd); files 25 tools/perf/util/data.c zfree(&files[nr].path); files 27 tools/perf/util/data.c free(files); files 32 tools/perf/util/data.c close_dir(data->dir.files, data->dir.nr); files 37 tools/perf/util/data.c struct perf_data_file *files = NULL; files 43 tools/perf/util/data.c files = zalloc(nr * sizeof(*files)); files 44 tools/perf/util/data.c if (!files) files 48 tools/perf/util/data.c data->dir.files = files; files 52 tools/perf/util/data.c struct perf_data_file *file = &files[i]; files 67 tools/perf/util/data.c close_dir(files, i); files 73 tools/perf/util/data.c struct perf_data_file *files = NULL; files 104 tools/perf/util/data.c file = realloc(files, (nr + 1) * sizeof(*files)); files 108 tools/perf/util/data.c files = file; files 109 tools/perf/util/data.c file = &files[nr++]; files 123 tools/perf/util/data.c if (!files) files 126 tools/perf/util/data.c data->dir.files = files; files 131 tools/perf/util/data.c close_dir(files, nr); files 143 tools/perf/util/data.c struct perf_data_file *file = &data->dir.files[i]; files 413 tools/perf/util/data.c struct perf_data_file *file = &data->dir.files[i]; files 28 tools/perf/util/data.h struct perf_data_file *files; files 24 tools/perf/util/dwarf-aux.c Dwarf_Files *files; files 32 tools/perf/util/dwarf-aux.c ret = dwarf_getsrcfiles(cu_die, &files, &nfiles); files 37 tools/perf/util/dwarf-aux.c src = dwarf_filesrc(files, i, NULL, NULL); files 421 tools/perf/util/dwarf-aux.c Dwarf_Files *files; files 426 tools/perf/util/dwarf-aux.c dwarf_getsrcfiles(&cu_die, &files, NULL) != 0) files 429 tools/perf/util/dwarf-aux.c return dwarf_filesrc(files, idx, NULL, NULL);