/kernel/linux/linux-5.10/fs/nfs/ |
D | inode.c | 70 nfs_fattr_to_ino_t(struct nfs_fattr *fattr) in nfs_fattr_to_ino_t() argument 72 return nfs_fileid_to_ino_t(fattr->fileid); in nfs_fattr_to_ino_t() 321 struct nfs_fattr *fattr; member 335 struct nfs_fattr *fattr = desc->fattr; in nfs_find_actor() local 337 if (NFS_FILEID(inode) != fattr->fileid) in nfs_find_actor() 339 if (inode_wrong_type(inode, fattr->mode)) in nfs_find_actor() 352 struct nfs_fattr *fattr = desc->fattr; in nfs_init_locked() local 354 set_nfs_fileid(inode, fattr->fileid); in nfs_init_locked() 355 inode->i_mode = fattr->mode; in nfs_init_locked() 368 void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr, in nfs_setsecurity() argument [all …]
|
D | export.c | 68 struct nfs_fattr *fattr = NULL; in nfs_fh_to_dentry() local 82 fattr = nfs_alloc_fattr(); in nfs_fh_to_dentry() 83 if (fattr == NULL) { in nfs_fh_to_dentry() 88 fattr->fileid = ((u64)p[FILEID_HIGH_OFF] << 32) + p[FILEID_LOW_OFF]; in nfs_fh_to_dentry() 89 fattr->mode = p[FILE_I_TYPE_OFF]; in nfs_fh_to_dentry() 90 fattr->valid |= NFS_ATTR_FATTR_FILEID | NFS_ATTR_FATTR_TYPE; in nfs_fh_to_dentry() 92 dprintk("%s: fileid %llu mode %d\n", __func__, fattr->fileid, fattr->mode); in nfs_fh_to_dentry() 94 inode = nfs_ilookup(sb, fattr, server_fh); in nfs_fh_to_dentry() 105 ret = rpc_ops->getattr(NFS_SB(sb), server_fh, fattr, label, NULL); in nfs_fh_to_dentry() 108 trace_nfs_fh_to_dentry(sb, server_fh, fattr->fileid, ret); in nfs_fh_to_dentry() [all …]
|
D | nfs4getroot.c | 18 fsinfo.fattr = nfs_alloc_fattr(); in nfs4_get_rootfh() 19 if (fsinfo.fattr == NULL) in nfs4_get_rootfh() 29 if (!(fsinfo.fattr->valid & NFS_ATTR_FATTR_TYPE) in nfs4_get_rootfh() 30 || !S_ISDIR(fsinfo.fattr->mode)) { in nfs4_get_rootfh() 37 memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); in nfs4_get_rootfh() 39 nfs_free_fattr(fsinfo.fattr); in nfs4_get_rootfh()
|
D | nfs3proc.c | 72 nfs_fattr_init(info->fattr); in do_proc_get_root() 75 if (status == 0 && !(info->fattr->valid & NFS_ATTR_FATTR)) { in do_proc_get_root() 77 msg.rpc_resp = info->fattr; in do_proc_get_root() 104 struct nfs_fattr *fattr, struct nfs4_label *label, in nfs3_proc_getattr() argument 110 .rpc_resp = fattr, in nfs3_proc_getattr() 120 nfs_fattr_init(fattr); in nfs3_proc_getattr() 127 nfs3_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr, in nfs3_proc_setattr() argument 138 .rpc_resp = fattr, in nfs3_proc_setattr() 145 nfs_fattr_init(fattr); in nfs3_proc_setattr() 148 nfs_setattr_update_inode(inode, sattr, fattr); in nfs3_proc_setattr() [all …]
|
D | proc.c | 57 struct nfs_fattr *fattr = info->fattr; in nfs_proc_get_root() local 62 .rpc_resp = fattr, in nfs_proc_get_root() 67 nfs_fattr_init(fattr); in nfs_proc_get_root() 102 struct nfs_fattr *fattr, struct nfs4_label *label, in nfs_proc_getattr() argument 108 .rpc_resp = fattr, in nfs_proc_getattr() 118 nfs_fattr_init(fattr); in nfs_proc_getattr() 125 nfs_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr, in nfs_proc_setattr() argument 136 .rpc_resp = fattr, in nfs_proc_setattr() 146 nfs_fattr_init(fattr); in nfs_proc_setattr() 149 nfs_setattr_update_inode(inode, sattr, fattr); in nfs_proc_setattr() [all …]
|
D | nfs4idmap.c | 89 void nfs_fattr_init_names(struct nfs_fattr *fattr, in nfs_fattr_init_names() argument 93 fattr->owner_name = owner_name; in nfs_fattr_init_names() 94 fattr->group_name = group_name; in nfs_fattr_init_names() 97 static void nfs_fattr_free_owner_name(struct nfs_fattr *fattr) in nfs_fattr_free_owner_name() argument 99 fattr->valid &= ~NFS_ATTR_FATTR_OWNER_NAME; in nfs_fattr_free_owner_name() 100 kfree(fattr->owner_name->data); in nfs_fattr_free_owner_name() 103 static void nfs_fattr_free_group_name(struct nfs_fattr *fattr) in nfs_fattr_free_group_name() argument 105 fattr->valid &= ~NFS_ATTR_FATTR_GROUP_NAME; in nfs_fattr_free_group_name() 106 kfree(fattr->group_name->data); in nfs_fattr_free_group_name() 109 static bool nfs_fattr_map_owner_name(struct nfs_server *server, struct nfs_fattr *fattr) in nfs_fattr_map_owner_name() argument [all …]
|
D | getroot.c | 83 fsinfo.fattr = nfs_alloc_fattr(); in nfs_get_root() 84 if (fsinfo.fattr == NULL) in nfs_get_root() 87 fsinfo.fattr->label = nfs4_label_alloc(server, GFP_KERNEL); in nfs_get_root() 88 if (IS_ERR(fsinfo.fattr->label)) in nfs_get_root() 97 inode = nfs_fhget(s, ctx->mntfh, fsinfo.fattr, NULL); in nfs_get_root() 150 nfs_setsecurity(inode, fsinfo.fattr, fsinfo.fattr->label); in nfs_get_root() 154 nfs4_label_free(fsinfo.fattr->label); in nfs_get_root() 156 nfs_free_fattr(fsinfo.fattr); in nfs_get_root()
|
D | nfs3acl.c | 87 res.fattr = nfs_alloc_fattr(); in nfs3_get_acl() 88 if (res.fattr == NULL) in nfs3_get_acl() 105 status = nfs_refresh_inode(inode, res.fattr); in nfs3_get_acl() 140 nfs_free_fattr(res.fattr); in nfs3_get_acl() 154 nfs_free_fattr(res.fattr); in nfs3_get_acl() 162 struct nfs_fattr *fattr; in __nfs3_proc_setacls() local 172 .rpc_resp = &fattr, in __nfs3_proc_setacls() 211 fattr = nfs_alloc_fattr(); in __nfs3_proc_setacls() 212 if (fattr == NULL) in __nfs3_proc_setacls() 216 msg.rpc_resp = fattr; in __nfs3_proc_setacls() [all …]
|
D | nfs2xdr.c | 265 static int decode_fattr(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_fattr() argument 275 fattr->valid |= NFS_ATTR_FATTR_V2; in decode_fattr() 279 fattr->mode = be32_to_cpup(p++); in decode_fattr() 280 fattr->nlink = be32_to_cpup(p++); in decode_fattr() 281 fattr->uid = make_kuid(userns, be32_to_cpup(p++)); in decode_fattr() 282 if (!uid_valid(fattr->uid)) in decode_fattr() 284 fattr->gid = make_kgid(userns, be32_to_cpup(p++)); in decode_fattr() 285 if (!gid_valid(fattr->gid)) in decode_fattr() 288 fattr->size = be32_to_cpup(p++); in decode_fattr() 289 fattr->du.nfs2.blocksize = be32_to_cpup(p++); in decode_fattr() [all …]
|
D | nfs3xdr.c | 621 static int decode_fattr3(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_fattr3() argument 633 fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode; in decode_fattr3() 634 fattr->nlink = be32_to_cpup(p++); in decode_fattr3() 635 fattr->uid = make_kuid(userns, be32_to_cpup(p++)); in decode_fattr3() 636 if (!uid_valid(fattr->uid)) in decode_fattr3() 638 fattr->gid = make_kgid(userns, be32_to_cpup(p++)); in decode_fattr3() 639 if (!gid_valid(fattr->gid)) in decode_fattr3() 642 p = xdr_decode_size3(p, &fattr->size); in decode_fattr3() 643 p = xdr_decode_size3(p, &fattr->du.nfs3.used); in decode_fattr3() 644 p = xdr_decode_specdata3(p, &fattr->rdev); in decode_fattr3() [all …]
|
D | nfs4proc.c | 99 static void nfs_fixup_referral_attributes(struct nfs_fattr *fattr); 100 …attr(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *fattr, struct nfs4_label… 102 struct nfs_fattr *fattr, struct iattr *sattr, 377 static void nfs4_fattr_set_prechange(struct nfs_fattr *fattr, u64 version) in nfs4_fattr_set_prechange() argument 379 if (!(fattr->valid & NFS_ATTR_FATTR_PRECHANGE)) { in nfs4_fattr_set_prechange() 380 fattr->pre_change_attr = version; in nfs4_fattr_set_prechange() 381 fattr->valid |= NFS_ATTR_FATTR_PRECHANGE; in nfs4_fattr_set_prechange() 3313 nfs_fattr_init(res->fattr); in _nfs4_do_setattr() 3355 struct nfs_fattr *fattr, struct iattr *sattr, in nfs4_do_setattr() argument 3370 .fattr = fattr, in nfs4_do_setattr() [all …]
|
D | client.c | 821 int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs_fattr *fattr) in nfs_probe_fsinfo() argument 833 fsinfo.fattr = fattr; in nfs_probe_fsinfo() 846 pathinfo.fattr = fattr; in nfs_probe_fsinfo() 847 nfs_fattr_init(fattr); in nfs_probe_fsinfo() 981 struct nfs_fattr *fattr; in nfs_create_server() local 991 fattr = nfs_alloc_fattr(); in nfs_create_server() 992 if (fattr == NULL) in nfs_create_server() 1001 error = nfs_probe_fsinfo(server, ctx->mntfh, fattr); in nfs_create_server() 1014 if (!(fattr->valid & NFS_ATTR_FATTR)) { in nfs_create_server() 1016 fattr, NULL, NULL); in nfs_create_server() [all …]
|
D | dir.c | 407 entry->fattr->time_start = desc->timestamp; in xdr_decode() 408 entry->fattr->gencount = desc->gencount; in xdr_decode() 429 if (entry->fattr->fileid != nfsi->fileid) in nfs_same_file() 493 if (!(entry->fattr->valid & NFS_ATTR_FATTR_FILEID)) in nfs_prime_dcache() 495 if (!(entry->fattr->valid & NFS_ATTR_FATTR_FSID)) in nfs_prime_dcache() 523 &entry->fattr->fsid)) in nfs_prime_dcache() 529 status = nfs_refresh_inode(d_inode(dentry), entry->fattr); in nfs_prime_dcache() 531 nfs_setsecurity(d_inode(dentry), entry->fattr, entry->label); in nfs_prime_dcache() 545 inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr, entry->label); in nfs_prime_dcache() 661 entry.fattr = nfs_alloc_fattr(); in nfs_readdir_xdr_to_array() [all …]
|
D | nfs4file.c | 324 struct nfs_fattr *fattr = nfs_alloc_fattr(); in __nfs42_ssc_open() local 335 if (!fattr) in __nfs42_ssc_open() 338 status = nfs4_proc_getattr(server, src_fh, fattr, NULL, NULL); in __nfs42_ssc_open() 344 if (!S_ISREG(fattr->mode)) { in __nfs42_ssc_open() 356 r_ino = nfs_fhget(ss_mnt->mnt_root->d_inode->i_sb, src_fh, fattr, in __nfs42_ssc_open() 402 nfs_free_fattr(fattr); in __nfs42_ssc_open()
|
D | namespace.c | 168 ctx->clone_data.fattr = nfs_alloc_fattr(); in nfs_d_automount() 169 if (!ctx->clone_data.fattr) in nfs_d_automount() 270 ctx->clone_data.fattr, in nfs_do_submount() 308 ctx->mntfh, ctx->clone_data.fattr, in nfs_submount()
|
D | internal.h | 21 static inline void nfs_attr_check_mountpoint(struct super_block *parent, struct nfs_fattr *fattr) in nfs_attr_check_mountpoint() argument 23 if (!nfs_fsid_equal(&NFS_SB(parent)->fsid, &fattr->fsid)) in nfs_attr_check_mountpoint() 24 fattr->valid |= NFS_ATTR_FATTR_MOUNTPOINT; in nfs_attr_check_mountpoint() 27 static inline int nfs_attr_use_mounted_on_fileid(struct nfs_fattr *fattr) in nfs_attr_use_mounted_on_fileid() argument 29 if (((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) == 0) || in nfs_attr_use_mounted_on_fileid() 30 (((fattr->valid & NFS_ATTR_FATTR_MOUNTPOINT) == 0) && in nfs_attr_use_mounted_on_fileid() 31 ((fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) == 0))) in nfs_attr_use_mounted_on_fileid() 150 struct nfs_fattr *fattr; member
|
D | nfs3client.c | 61 struct nfs_fattr *fattr, in nfs3_clone_server() argument 64 struct nfs_server *server = nfs_clone_server(source, fh, fattr, flavor); in nfs3_clone_server()
|
D | nfs4xdr.c | 4568 struct nfs_fattr *fattr, struct nfs_fh *fh, in decode_getfattr_attrs() argument 4580 fattr->mode = 0; in decode_getfattr_attrs() 4582 fattr->mode |= nfs_type2fmt[type]; in decode_getfattr_attrs() 4583 fattr->valid |= status; in decode_getfattr_attrs() 4586 status = decode_attr_change(xdr, bitmap, &fattr->change_attr); in decode_getfattr_attrs() 4589 fattr->valid |= status; in decode_getfattr_attrs() 4591 status = decode_attr_size(xdr, bitmap, &fattr->size); in decode_getfattr_attrs() 4594 fattr->valid |= status; in decode_getfattr_attrs() 4596 status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); in decode_getfattr_attrs() 4599 fattr->valid |= status; in decode_getfattr_attrs() [all …]
|
D | nfs4client.c | 1031 struct nfs_fattr *fattr; in nfs4_server_common_setup() local 1038 fattr = nfs_alloc_fattr(); in nfs4_server_common_setup() 1039 if (fattr == NULL) in nfs4_server_common_setup() 1072 error = nfs_probe_fsinfo(server, mntfh, fattr); in nfs4_server_common_setup() 1086 nfs_free_fattr(fattr); in nfs4_server_common_setup() 1263 struct nfs_fattr *fattr; in nfs_probe_destination() local 1266 fattr = nfs_alloc_fattr(); in nfs_probe_destination() 1267 if (fattr == NULL) in nfs_probe_destination() 1272 error = nfs_probe_fsinfo(server, NFS_FH(inode), fattr); in nfs_probe_destination() 1274 nfs_free_fattr(fattr); in nfs_probe_destination()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | readdir.c | 78 struct cifs_fattr *fattr) in cifs_prime_dcache() argument 96 if (fattr->cf_flags & CIFS_FATTR_NEED_REVAL) in cifs_prime_dcache() 116 fattr->cf_uniqueid = CIFS_I(inode)->uniqueid; in cifs_prime_dcache() 120 if (CIFS_I(inode)->uniqueid == fattr->cf_uniqueid && in cifs_prime_dcache() 122 (fattr->cf_mode & S_IFMT)) { in cifs_prime_dcache() 123 cifs_fattr_to_inode(inode, fattr); in cifs_prime_dcache() 132 inode = cifs_iget(sb, fattr); in cifs_prime_dcache() 143 static bool reparse_file_needs_reval(const struct cifs_fattr *fattr) in reparse_file_needs_reval() argument 145 if (!(fattr->cf_cifsattrs & ATTR_REPARSE)) in reparse_file_needs_reval() 154 switch (fattr->cf_cifstag) { in reparse_file_needs_reval() [all …]
|
D | inode.c | 97 cifs_revalidate_cache(struct inode *inode, struct cifs_fattr *fattr) argument 118 fattr->cf_mtime = timestamp_truncate(fattr->cf_mtime, inode); 119 if (timespec64_equal(&inode->i_mtime, &fattr->cf_mtime) && 120 cifs_i->server_eof == fattr->cf_eof) { 136 cifs_nlink_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr) argument 143 if (fattr->cf_flags & CIFS_FATTR_UNKNOWN_NLINK) { 146 if (fattr->cf_cifsattrs & ATTR_DIRECTORY) 155 set_nlink(inode, fattr->cf_nlink); 160 cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr) argument 165 cifs_revalidate_cache(inode, fattr); [all …]
|
D | cifsacl.c | 343 struct cifs_fattr *fattr, uint sidtype) in sid_to_id() argument 456 fattr->cf_uid = fuid; in sid_to_id() 458 fattr->cf_gid = fgid; in sid_to_id() 706 struct cifs_fattr *fattr, bool mode_from_special_sid) in parse_dacl() argument 719 fattr->cf_mode |= S_IRWXUGO; in parse_dacl() 736 fattr->cf_mode &= ~(S_IRWXUGO); in parse_dacl() 767 fattr->cf_mode &= ~07777; in parse_dacl() 768 fattr->cf_mode |= in parse_dacl() 774 &fattr->cf_mode, in parse_dacl() 779 &fattr->cf_mode, in parse_dacl() [all …]
|
D | link.c | 171 couldbe_mf_symlink(const struct cifs_fattr *fattr) in couldbe_mf_symlink() argument 173 if (!S_ISREG(fattr->cf_mode)) in couldbe_mf_symlink() 177 if (fattr->cf_eof != CIFS_MF_SYMLINK_FILE_SIZE) in couldbe_mf_symlink() 253 struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, in check_mf_symlink() argument 261 if (!couldbe_mf_symlink(fattr)) in check_mf_symlink() 292 fattr->cf_eof = link_len; in check_mf_symlink() 293 fattr->cf_mode &= ~S_IFMT; in check_mf_symlink() 294 fattr->cf_mode |= S_IFLNK | S_IRWXU | S_IRWXG | S_IRWXO; in check_mf_symlink() 295 fattr->cf_dtype = DT_LNK; in check_mf_symlink()
|
/kernel/linux/linux-5.10/include/linux/ |
D | nfs_xdr.h | 140 struct nfs_fattr *fattr; /* Post-op attributes */ member 159 struct nfs_fattr *fattr; /* Post-op attributes */ member 177 struct nfs_fattr *fattr; /* Post-op attributes */ member 307 struct nfs_fattr *fattr; member 314 struct nfs_fattr fattr; member 538 struct nfs_fattr * fattr; member 621 struct nfs_fattr * fattr; member 664 struct nfs_fattr * fattr; member 693 struct nfs_fattr *fattr; member 752 struct nfs_fattr * fattr; member [all …]
|
D | nfs_fs.h | 375 extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr); 376 extern int nfs_post_op_update_inode_force_wcc(struct inode *inode, struct nfs_fattr *fattr); 377 extern int nfs_post_op_update_inode_force_wcc_locked(struct inode *inode, struct nfs_fattr *fattr); 391 extern void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr, 403 extern void nfs_fattr_init(struct nfs_fattr *fattr); 404 extern void nfs_fattr_set_barrier(struct nfs_fattr *fattr); 409 static inline void nfs_free_fattr(const struct nfs_fattr *fattr) in nfs_free_fattr() argument 411 kfree(fattr); in nfs_free_fattr() 498 struct nfs_fh *fh, struct nfs_fattr *fattr, 501 struct nfs_fattr *fattr, struct nfs4_label *label);
|