Lines Matching refs:files
521 static inline void flush_old_files(struct files_struct * files) in flush_old_files() argument
525 write_lock(&files->file_lock); in flush_old_files()
531 if (i >= files->max_fds || i >= files->max_fdset) in flush_old_files()
533 set = files->close_on_exec->fds_bits[j]; in flush_old_files()
536 files->close_on_exec->fds_bits[j] = 0; in flush_old_files()
537 write_unlock(&files->file_lock); in flush_old_files()
543 write_lock(&files->file_lock); in flush_old_files()
546 write_unlock(&files->file_lock); in flush_old_files()
592 struct files_struct * files; in flush_old_exec() local
608 files = current->files; /* refcounted so safe to hold */ in flush_old_exec()
620 steal_locks(files); in flush_old_exec()
621 put_files_struct(files); in flush_old_exec()
664 flush_old_files(current->files); in flush_old_exec()
669 put_files_struct(current->files); in flush_old_exec()
670 current->files = files; in flush_old_exec()
786 || atomic_read(¤t->files->count) > 1 in compute_creds()