Searched refs:open_files (Results 1 – 7 of 7) sorted by relevance
/fs/ |
D | file.c | 320 unsigned int open_files, i; in dup_fd() local 343 open_files = sane_fdtable_size(old_fdt, max_fds); in dup_fd() 348 while (unlikely(open_files > new_fdt->max_fds)) { in dup_fd() 354 new_fdt = alloc_fdtable(open_files - 1); in dup_fd() 361 if (unlikely(new_fdt->max_fds < open_files)) { in dup_fd() 374 open_files = sane_fdtable_size(old_fdt, max_fds); in dup_fd() 377 copy_fd_bitmaps(new_fdt, old_fdt, open_files); in dup_fd() 382 for (i = open_files; i != 0; i--) { in dup_fd() 393 __clear_open_fd(open_files - i, new_fdt); in dup_fd() 400 memset(new_fds, 0, (new_fdt->max_fds - open_files) * sizeof(struct file *)); in dup_fd()
|
/fs/nfs/ |
D | inode.c | 124 WARN_ON_ONCE(!list_empty(&NFS_I(inode)->open_files)); in nfs_clear_inode() 977 if (!list_empty(&nfsi->open_files)) in nfs_close_context() 1066 if (list_empty(&nfsi->open_files) && in nfs_inode_attach_open_context() 1070 list_add_tail_rcu(&ctx->list, &nfsi->open_files); in nfs_inode_attach_open_context() 1093 list_for_each_entry_rcu(pos, &nfsi->open_files, list) { in nfs_find_open_context() 1381 if (list_empty(&nfsi->open_files)) in nfs_file_has_writers() 2156 INIT_LIST_HEAD(&nfsi->open_files); in init_once()
|
D | delegation.c | 189 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens() 560 if (inode && list_empty(&NFS_I(inode)->open_files)) in nfs_delegation_need_return() 767 list_empty(&NFS_I(inode)->open_files) && in nfs4_inode_return_delegation_on_close()
|
D | dir.c | 83 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() 458 !list_empty(&nfsi->open_files)) in nfs_advise_use_readdirplus() 475 !list_empty(&nfsi->open_files)) { in nfs_force_use_readdirplus()
|
D | nfs4state.c | 1462 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_inode_find_state_and_recover() 1495 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_mark_open_context_bad()
|
D | pnfs.c | 1466 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in pnfs_roc() 2617 head = &NFS_I(lo->plh_inode)->open_files; in pnfs_should_return_unused_layout()
|
D | nfs4proc.c | 2088 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_find_open_context_mode()
|