| /fs/nfsd/ |
| A D | nfsfh.c | 30 struct svc_export *exp = expv; in nfsd_acceptable() local 153 struct svc_export *exp; in nfsd_set_fh_dentry() local 199 if (IS_ERR(exp)) { in nfsd_set_fh_dentry() 273 fhp->fh_export = exp; in nfsd_set_fh_dentry() 290 if (EX_WGATHER(exp)) in nfsd_set_fh_dentry() 298 exp_put(exp); in nfsd_set_fh_dentry() 335 exp = fhp->fh_export; in __fh_verify() 485 return exp->ex_path.dentry == exp->ex_path.dentry->d_sb->s_root; in is_root_export() 622 exp->ex_fsid, exp->ex_uuid); in fh_compose() 757 if (exp) { in fh_put() [all …]
|
| A D | export.c | 365 kfree(exp); in svc_export_release() 644 exp.cd = cd; in svc_export_parse() 700 err = check_export(&exp.ex_path, &exp.ex_flags, exp.ex_uuid); in svc_export_parse() 800 exp_flags(m, exp->ex_flags, exp->ex_fsid, in svc_export_show() 801 exp->ex_anon_uid, exp->ex_anon_gid, &exp->ex_fslocs); in svc_export_show() 923 ch = sunrpc_cache_lookup_rcu(exp->cd, &exp->h, hash); in svc_export_lookup() 991 return exp; in exp_get_by_name() 1011 return exp; in exp_parent() 1081 return exp; in exp_find() 1276 return exp; in rqst_exp_parent() [all …]
|
| A D | export.h | 98 #define EX_ISSYNC(exp) (!((exp)->ex_flags & NFSEXP_ASYNC)) argument 99 #define EX_NOHIDE(exp) ((exp)->ex_flags & NFSEXP_NOHIDE) argument 100 #define EX_WGATHER(exp) ((exp)->ex_flags & NFSEXP_GATHERED_WRITES) argument 103 int nfsexp_flags(struct svc_cred *cred, struct svc_export *exp); 104 __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp, 122 static inline void exp_put(struct svc_export *exp) in exp_put() argument 124 cache_put(&exp->h, exp->cd); in exp_put() 127 static inline struct svc_export *exp_get(struct svc_export *exp) in exp_get() argument 129 cache_get(&exp->h); in exp_get() 130 return exp; in exp_get()
|
| A D | auth.c | 11 struct exp_flavor_info *end = exp->ex_flavors + exp->ex_nflavors; in nfsexp_flags() 13 for (f = exp->ex_flavors; f < end; f++) { in nfsexp_flags() 17 return exp->ex_flags; in nfsexp_flags() 27 int flags = nfsexp_flags(cred, exp); in nfsd_setuser() 41 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 42 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 48 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 50 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 58 gi->gid[i] = exp->ex_anon_gid; in nfsd_setuser() 70 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() [all …]
|
| A D | stats.h | 32 struct svc_export *exp) in nfsd_stats_fh_stale_inc() argument 35 if (exp && exp->ex_stats) in nfsd_stats_fh_stale_inc() 36 percpu_counter_inc(&exp->ex_stats->counter[EXP_STATS_FH_STALE]); in nfsd_stats_fh_stale_inc() 40 struct svc_export *exp, s64 amount) in nfsd_stats_io_read_add() argument 43 if (exp && exp->ex_stats) in nfsd_stats_io_read_add() 44 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_READ], amount); in nfsd_stats_io_read_add() 48 struct svc_export *exp, s64 amount) in nfsd_stats_io_write_add() argument 51 if (exp && exp->ex_stats) in nfsd_stats_io_write_add() 52 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_WRITE], amount); in nfsd_stats_io_write_add()
|
| A D | vfs.c | 173 exp2 = exp; in nfsd_cross_mnt() 208 exp_put(*exp); in nfsd_lookup_parent() 209 *exp = exp2; in nfsd_lookup_parent() 245 struct svc_export *exp; in nfsd_lookup_dentry() local 284 *exp_ret = exp; in nfsd_lookup_dentry() 288 exp_put(exp); in nfsd_lookup_dentry() 316 struct svc_export *exp; in nfsd_lookup() local 338 exp_put(exp); in nfsd_lookup() 1185 struct svc_export *exp; in nfsd_vfs_write() local 1213 exp = fhp->fh_export; in nfsd_vfs_write() [all …]
|
| A D | nfs4xdr.c | 2780 struct svc_export *exp) in nfsd4_encode_fs_locations4() argument 2937 struct svc_export *exp; member 3040 const struct svc_export *exp = args->exp; in nfsd4_encode_fattr4_change() local 3600 .mnt = exp->ex_path.mnt, in nfsd4_encode_fattr4() 3609 args.exp = exp; in nfsd4_encode_fattr4() 3625 if (exp->ex_fslocs.migrated) { in nfsd4_encode_fattr4() 3836 exp_get(exp); in nfsd4_encode_entry4_fattr() 3872 exp_put(exp); in nfsd4_encode_entry4_fattr() 4756 if (exp->ex_nflavors) { in nfsd4_encode_SECINFO4resok() 4757 flavs = exp->ex_flavors; in nfsd4_encode_SECINFO4resok() [all …]
|
| A D | pnfs.h | 72 void nfsd4_setup_layout_type(struct svc_export *exp); 84 static inline void nfsd4_setup_layout_type(struct svc_export *exp) in nfsd4_setup_layout_type() argument
|
| A D | nfs4layouts.c | 127 void nfsd4_setup_layout_type(struct svc_export *exp) in nfsd4_setup_layout_type() argument 130 struct super_block *sb = exp->ex_path.mnt->mnt_sb; in nfsd4_setup_layout_type() 133 if (!(exp->ex_flags & NFSEXP_PNFS)) in nfsd4_setup_layout_type() 137 exp->ex_layout_types |= 1 << LAYOUT_FLEX_FILES; in nfsd4_setup_layout_type() 143 exp->ex_layout_types |= 1 << LAYOUT_BLOCK_VOLUME; in nfsd4_setup_layout_type() 151 exp->ex_layout_types |= 1 << LAYOUT_SCSI; in nfsd4_setup_layout_type()
|
| A D | auth.h | 15 int nfsd_setuser(struct svc_cred *cred, struct svc_export *exp);
|
| A D | nfs4proc.c | 88 struct svc_export *exp = cstate->current_fh.fh_export; in check_attr_support() local 95 !(exp->ex_flags & NFSEXP_SECURITY_LABEL)) in check_attr_support() 1075 struct svc_export *exp; in nfsd4_secinfo() local 1084 &exp, &dentry); in nfsd4_secinfo() 1088 exp_put(exp); in nfsd4_secinfo() 1091 secinfo->si_exp = exp; in nfsd4_secinfo() 2315 if (!exp->ex_layout_types) { in nfsd4_layout_verify() 2321 !(exp->ex_layout_types & (1 << layout_type))) { in nfsd4_layout_verify() 2337 struct svc_export *exp; in nfsd4_getdeviceinfo() local 2356 if (IS_ERR(exp)) { in nfsd4_getdeviceinfo() [all …]
|
| A D | nfs3xdr.c | 983 struct svc_export *exp; in compose_entry_fh() local 988 exp = cd->fh.fh_export; in compose_entry_fh() 999 if (dparent == exp->ex_path.dentry) in compose_entry_fh() 1013 rv = fh_compose(fhp, exp, dchild, &cd->fh); in compose_entry_fh()
|
| A D | vfs.h | 158 __be32 nfsd_permission(struct svc_cred *cred, struct svc_export *exp,
|
| A D | xdr4.h | 934 struct svc_fh *fhp, struct svc_export *exp,
|
| A D | nfs4state.c | 5930 struct svc_export *exp; in nfsd4_verify_deleg_dentry() local 5936 &exp, &child); in nfsd4_verify_deleg_dentry() 5941 exp_put(exp); in nfsd4_verify_deleg_dentry()
|
| /fs/ |
| A D | select.c | 524 in = *inp++; out = *outp++; ex = *exp++; in do_select() 671 (ret = get_fd_set(n, exp, fds.ex))) in core_sys_select() 690 set_fd_set(n, exp, fds.res_ex)) in core_sys_select() 718 ret = core_sys_select(n, inp, outp, exp, to); in kern_select() 725 return kern_select(n, inp, outp, exp, tvp); in SYSCALL_DEFINE5() 729 fd_set __user *exp, void __user *tsp, in do_pselect() argument 759 ret = core_sys_select(n, inp, outp, exp, to); in do_pselect() 824 fd_set __user *inp, *outp, *exp; member 1250 compat_set_fd_set(n, exp, fds.res_ex)) in compat_core_sys_select() 1293 compat_uptr_t exp; member [all …]
|