Home
last modified time | relevance | path

Searched refs:open_files (Results 1 – 7 of 7) sorted by relevance

/fs/
Dfile.c276 unsigned int open_files, i; in dup_fd() local
299 open_files = count_open_files(old_fdt); in dup_fd()
304 while (unlikely(open_files > new_fdt->max_fds)) { in dup_fd()
310 new_fdt = alloc_fdtable(open_files - 1); in dup_fd()
317 if (unlikely(new_fdt->max_fds < open_files)) { in dup_fd()
330 open_files = count_open_files(old_fdt); in dup_fd()
333 copy_fd_bitmaps(new_fdt, old_fdt, open_files); in dup_fd()
338 for (i = open_files; i != 0; i--) { in dup_fd()
349 __clear_open_fd(open_files - i, new_fdt); in dup_fd()
356 memset(new_fds, 0, (new_fdt->max_fds - open_files) * sizeof(struct file *)); in dup_fd()
/fs/nfs/
Dinode.c125 WARN_ON_ONCE(!list_empty(&NFS_I(inode)->open_files)); in nfs_clear_inode()
948 if (!list_empty(&nfsi->open_files)) in nfs_close_context()
1037 if (list_empty(&nfsi->open_files) && in nfs_inode_attach_open_context()
1041 list_add_tail_rcu(&ctx->list, &nfsi->open_files); in nfs_inode_attach_open_context()
1063 list_for_each_entry_rcu(pos, &nfsi->open_files, list) { in nfs_find_open_context()
1342 if (list_empty(&nfsi->open_files)) in nfs_file_has_writers()
2101 INIT_LIST_HEAD(&nfsi->open_files); in init_once()
Ddelegation.c149 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens()
481 if (inode && list_empty(&NFS_I(inode)->open_files)) in nfs_delegation_need_return()
Ddir.c83 if (list_empty(&nfsi->open_files) && in alloc_nfs_open_dir_context()
87 list_add(&ctx->list, &nfsi->open_files); in alloc_nfs_open_dir_context()
421 !list_empty(&nfsi->open_files)) in nfs_advise_use_readdirplus()
438 !list_empty(&nfsi->open_files)) { in nfs_force_use_readdirplus()
Dnfs4state.c1440 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_inode_find_state_and_recover()
1472 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_mark_open_context_bad()
Dpnfs.c1390 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in pnfs_roc()
Dnfs4proc.c2027 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_find_open_context_mode()