Lines Matching refs:files
640 struct files_struct * files; in proc_readfd() local
658 files = p->files; in proc_readfd()
659 if (files) in proc_readfd()
660 atomic_inc(&files->count); in proc_readfd()
662 if (!files) in proc_readfd()
664 read_lock(&files->file_lock); in proc_readfd()
666 fd < files->max_fds; in proc_readfd()
670 if (!fcheck_files(files, fd)) in proc_readfd()
672 read_unlock(&files->file_lock); in proc_readfd()
684 read_lock(&files->file_lock); in proc_readfd()
687 read_lock(&files->file_lock); in proc_readfd()
689 read_unlock(&files->file_lock); in proc_readfd()
690 put_files_struct(files); in proc_readfd()
839 struct files_struct * files; in proc_lookupfd() local
863 files = task->files; in proc_lookupfd()
864 if (files) in proc_lookupfd()
865 atomic_inc(&files->count); in proc_lookupfd()
867 if (!files) in proc_lookupfd()
869 read_lock(&files->file_lock); in proc_lookupfd()
870 file = inode->u.proc_i.file = fcheck_files(files, fd); in proc_lookupfd()
874 read_unlock(&files->file_lock); in proc_lookupfd()
875 put_files_struct(files); in proc_lookupfd()
889 read_unlock(&files->file_lock); in proc_lookupfd()
890 put_files_struct(files); in proc_lookupfd()