Home
last modified time | relevance | path

Searched refs:fattr (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.1.9/fs/nfs/
Dinode.c70 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()
304 struct nfs_fattr *fattr; member
318 struct nfs_fattr *fattr = desc->fattr; in nfs_find_actor() local
320 if (NFS_FILEID(inode) != fattr->fileid) in nfs_find_actor()
322 if (inode_wrong_type(inode, fattr->mode)) in nfs_find_actor()
335 struct nfs_fattr *fattr = desc->fattr; in nfs_init_locked() local
337 set_nfs_fileid(inode, fattr->fileid); in nfs_init_locked()
338 inode->i_mode = fattr->mode; in nfs_init_locked()
351 void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr) in nfs_setsecurity() argument
[all …]
Dexport.c67 struct nfs_fattr *fattr = NULL; in nfs_fh_to_dentry() local
81 fattr = nfs_alloc_fattr_with_label(NFS_SB(sb)); in nfs_fh_to_dentry()
82 if (fattr == NULL) { in nfs_fh_to_dentry()
87 fattr->fileid = ((u64)p[FILEID_HIGH_OFF] << 32) + p[FILEID_LOW_OFF]; in nfs_fh_to_dentry()
88 fattr->mode = p[FILE_I_TYPE_OFF]; in nfs_fh_to_dentry()
89 fattr->valid |= NFS_ATTR_FATTR_FILEID | NFS_ATTR_FATTR_TYPE; in nfs_fh_to_dentry()
91 dprintk("%s: fileid %llu mode %d\n", __func__, fattr->fileid, fattr->mode); in nfs_fh_to_dentry()
93 inode = nfs_ilookup(sb, fattr, server_fh); in nfs_fh_to_dentry()
98 ret = rpc_ops->getattr(NFS_SB(sb), server_fh, fattr, NULL); in nfs_fh_to_dentry()
101 trace_nfs_fh_to_dentry(sb, server_fh, fattr->fileid, ret); in nfs_fh_to_dentry()
[all …]
Dnfs3proc.c72 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 inode *inode) in nfs3_proc_getattr() argument
109 .rpc_resp = fattr, in nfs3_proc_getattr()
119 nfs_fattr_init(fattr); in nfs3_proc_getattr()
126 nfs3_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr, in nfs3_proc_setattr() argument
137 .rpc_resp = fattr, in nfs3_proc_setattr()
144 nfs_fattr_init(fattr); in nfs3_proc_setattr()
147 nfs_setattr_update_inode(inode, sattr, fattr); in nfs3_proc_setattr()
[all …]
Dnfs4getroot.c18 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()
Dproc.c57 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()
104 struct nfs_fattr *fattr, struct inode *inode) in nfs_proc_getattr() argument
109 .rpc_resp = fattr, in nfs_proc_getattr()
119 nfs_fattr_init(fattr); in nfs_proc_getattr()
126 nfs_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr, in nfs_proc_setattr() argument
137 .rpc_resp = fattr, in nfs_proc_setattr()
147 nfs_fattr_init(fattr); in nfs_proc_setattr()
150 nfs_setattr_update_inode(inode, sattr, fattr); in nfs_proc_setattr()
[all …]
Dnfs4idmap.c89 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 …]
Dnfs3acl.c90 res.fattr = nfs_alloc_fattr(); in nfs3_get_acl()
91 if (res.fattr == NULL) in nfs3_get_acl()
108 status = nfs_refresh_inode(inode, res.fattr); in nfs3_get_acl()
144 nfs_free_fattr(res.fattr); in nfs3_get_acl()
158 nfs_free_fattr(res.fattr); in nfs3_get_acl()
166 struct nfs_fattr *fattr; in __nfs3_proc_setacls() local
176 .rpc_resp = &fattr, in __nfs3_proc_setacls()
215 fattr = nfs_alloc_fattr(); in __nfs3_proc_setacls()
216 if (fattr == NULL) in __nfs3_proc_setacls()
220 msg.rpc_resp = fattr; in __nfs3_proc_setacls()
[all …]
Dnfs2xdr.c266 static int decode_fattr(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_fattr() argument
276 fattr->valid |= NFS_ATTR_FATTR_V2; in decode_fattr()
280 fattr->mode = be32_to_cpup(p++); in decode_fattr()
281 fattr->nlink = be32_to_cpup(p++); in decode_fattr()
282 fattr->uid = make_kuid(userns, be32_to_cpup(p++)); in decode_fattr()
283 if (!uid_valid(fattr->uid)) in decode_fattr()
285 fattr->gid = make_kgid(userns, be32_to_cpup(p++)); in decode_fattr()
286 if (!gid_valid(fattr->gid)) in decode_fattr()
289 fattr->size = be32_to_cpup(p++); in decode_fattr()
290 fattr->du.nfs2.blocksize = be32_to_cpup(p++); in decode_fattr()
[all …]
Dnfs3xdr.c623 static int decode_fattr3(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_fattr3() argument
635 fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode; in decode_fattr3()
636 fattr->nlink = be32_to_cpup(p++); in decode_fattr3()
637 fattr->uid = make_kuid(userns, be32_to_cpup(p++)); in decode_fattr3()
638 if (!uid_valid(fattr->uid)) in decode_fattr3()
640 fattr->gid = make_kgid(userns, be32_to_cpup(p++)); in decode_fattr3()
641 if (!gid_valid(fattr->gid)) in decode_fattr3()
644 p = xdr_decode_size3(p, &fattr->size); in decode_fattr3()
645 p = xdr_decode_size3(p, &fattr->du.nfs3.used); in decode_fattr3()
646 p = xdr_decode_specdata3(p, &fattr->rdev); in decode_fattr3()
[all …]
Dgetroot.c83 fsinfo.fattr = nfs_alloc_fattr_with_label(server); in nfs_get_root()
84 if (fsinfo.fattr == NULL) in nfs_get_root()
94 inode = nfs_fhget(s, ctx->mntfh, fsinfo.fattr); in nfs_get_root()
151 nfs_setsecurity(inode, fsinfo.fattr); in nfs_get_root()
155 nfs_free_fattr(fsinfo.fattr); in nfs_get_root()
Dclient.c828 …atic int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs_fattr *fattr) in nfs_probe_fsinfo() argument
840 fsinfo.fattr = fattr; in nfs_probe_fsinfo()
853 pathinfo.fattr = fattr; in nfs_probe_fsinfo()
854 nfs_fattr_init(fattr); in nfs_probe_fsinfo()
879 struct nfs_fattr *fattr; in nfs_probe_server() local
882 fattr = nfs_alloc_fattr(); in nfs_probe_server()
883 if (fattr == NULL) in nfs_probe_server()
888 error = nfs_probe_fsinfo(server, mntfh, fattr); in nfs_probe_server()
890 nfs_free_fattr(fattr); in nfs_probe_server()
1021 struct nfs_fattr *fattr; in nfs_create_server() local
[all …]
Dnfs4proc.c95 static void nfs_fixup_referral_attributes(struct nfs_fattr *fattr);
97 struct nfs_fattr *fattr, struct inode *inode);
99 struct nfs_fattr *fattr, struct iattr *sattr,
371 static void nfs4_fattr_set_prechange(struct nfs_fattr *fattr, u64 version) in nfs4_fattr_set_prechange() argument
373 if (!(fattr->valid & NFS_ATTR_FATTR_PRECHANGE)) { in nfs4_fattr_set_prechange()
374 fattr->pre_change_attr = version; in nfs4_fattr_set_prechange()
375 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
3369 .fattr = fattr, in nfs4_do_setattr()
[all …]
Ddir.c633 entry->fattr->time_start = desc->timestamp; in xdr_decode()
634 entry->fattr->gencount = desc->gencount; in xdr_decode()
655 if (entry->fattr->fileid != nfsi->fileid) in nfs_same_file()
735 if (!(entry->fattr->valid & NFS_ATTR_FATTR_FILEID)) in nfs_prime_dcache()
737 if (!(entry->fattr->valid & NFS_ATTR_FATTR_FSID)) in nfs_prime_dcache()
765 &entry->fattr->fsid)) in nfs_prime_dcache()
771 status = nfs_refresh_inode(d_inode(dentry), entry->fattr); in nfs_prime_dcache()
773 nfs_setsecurity(d_inode(dentry), entry->fattr); in nfs_prime_dcache()
791 inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr); in nfs_prime_dcache()
812 if (entry->fattr->label) in nfs_readdir_entry_decode()
[all …]
Dnfs4file.c323 struct nfs_fattr *fattr = nfs_alloc_fattr(); in __nfs42_ssc_open() local
334 if (!fattr) in __nfs42_ssc_open()
337 status = nfs4_proc_getattr(server, src_fh, fattr, NULL); in __nfs42_ssc_open()
343 if (!S_ISREG(fattr->mode)) { in __nfs42_ssc_open()
355 r_ino = nfs_fhget(ss_mnt->mnt_sb, src_fh, fattr); in __nfs42_ssc_open()
399 nfs_free_fattr(fattr); in __nfs42_ssc_open()
Dnamespace.c168 ctx->clone_data.fattr = nfs_alloc_fattr(); in nfs_d_automount()
169 if (!ctx->clone_data.fattr) in nfs_d_automount()
273 ctx->clone_data.fattr, in nfs_do_submount()
311 ctx->mntfh, ctx->clone_data.fattr); in nfs_submount()
Dnfs3client.c61 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()
Dnfs4xdr.c4640 struct nfs_fattr *fattr, struct nfs_fh *fh, in decode_getfattr_attrs() argument
4651 fattr->mode = 0; in decode_getfattr_attrs()
4653 fattr->mode |= nfs_type2fmt[type]; in decode_getfattr_attrs()
4654 fattr->valid |= status; in decode_getfattr_attrs()
4657 status = decode_attr_change(xdr, bitmap, &fattr->change_attr); in decode_getfattr_attrs()
4660 fattr->valid |= status; in decode_getfattr_attrs()
4662 status = decode_attr_size(xdr, bitmap, &fattr->size); in decode_getfattr_attrs()
4665 fattr->valid |= status; in decode_getfattr_attrs()
4667 status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); in decode_getfattr_attrs()
4670 fattr->valid |= status; in decode_getfattr_attrs()
[all …]
Dnfs4namespace.c421 fs_locations->fattr = nfs_alloc_fattr(); in nfs_do_refmount()
422 if (!fs_locations->fattr) in nfs_do_refmount()
443 kfree(fs_locations->fattr); in nfs_do_refmount()
462 ctx->clone_data.fattr); in nfs4_submount()
468 if (ctx->clone_data.fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) { in nfs4_submount()
/linux-6.1.9/fs/cifs/
Dreaddir.c67 struct cifs_fattr *fattr) in cifs_prime_dcache() argument
85 if (fattr->cf_flags & CIFS_FATTR_NEED_REVAL) in cifs_prime_dcache()
105 fattr->cf_uniqueid = CIFS_I(inode)->uniqueid; in cifs_prime_dcache()
109 if (CIFS_I(inode)->uniqueid == fattr->cf_uniqueid && in cifs_prime_dcache()
110 cifs_fattr_to_inode(inode, fattr) == 0) { in cifs_prime_dcache()
119 inode = cifs_iget(sb, fattr); in cifs_prime_dcache()
130 static bool reparse_file_needs_reval(const struct cifs_fattr *fattr) in reparse_file_needs_reval() argument
132 if (!(fattr->cf_cifsattrs & ATTR_REPARSE)) in reparse_file_needs_reval()
141 switch (fattr->cf_cifstag) { in reparse_file_needs_reval()
153 cifs_fill_common_info(struct cifs_fattr *fattr, struct cifs_sb_info *cifs_sb) in cifs_fill_common_info() argument
[all …]
Dinode.c85 cifs_revalidate_cache(struct inode *inode, struct cifs_fattr *fattr) argument
107 fattr->cf_mtime = timestamp_truncate(fattr->cf_mtime, inode);
108 if (timespec64_equal(&inode->i_mtime, &fattr->cf_mtime) &&
109 cifs_i->server_eof == fattr->cf_eof) {
128 cifs_nlink_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr) argument
135 if (fattr->cf_flags & CIFS_FATTR_UNKNOWN_NLINK) {
138 if (fattr->cf_cifsattrs & ATTR_DIRECTORY)
147 set_nlink(inode, fattr->cf_nlink);
152 cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr) argument
158 unlikely(inode_wrong_type(inode, fattr->cf_mode))) {
[all …]
Dlink.c158 couldbe_mf_symlink(const struct cifs_fattr *fattr) in couldbe_mf_symlink() argument
160 if (!S_ISREG(fattr->cf_mode)) in couldbe_mf_symlink()
164 if (fattr->cf_eof != CIFS_MF_SYMLINK_FILE_SIZE) in couldbe_mf_symlink()
206 struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, in check_mf_symlink() argument
215 if (!couldbe_mf_symlink(fattr)) in check_mf_symlink()
246 fattr->cf_eof = link_len; in check_mf_symlink()
247 fattr->cf_mode &= ~S_IFMT; in check_mf_symlink()
248 fattr->cf_mode |= S_IFLNK | S_IRWXU | S_IRWXG | S_IRWXO; in check_mf_symlink()
249 fattr->cf_dtype = DT_LNK; in check_mf_symlink()
250 fattr->cf_symlink_target = symlink; in check_mf_symlink()
Dcifsacl.c335 struct cifs_fattr *fattr, uint sidtype) in sid_to_id() argument
446 fattr->cf_uid = fuid; in sid_to_id()
448 fattr->cf_gid = fgid; in sid_to_id()
758 struct cifs_fattr *fattr, bool mode_from_special_sid) in parse_dacl() argument
771 fattr->cf_mode |= 0777; in parse_dacl()
788 fattr->cf_mode &= ~(0777); in parse_dacl()
817 fattr->cf_mode &= ~07777; in parse_dacl()
818 fattr->cf_mode |= in parse_dacl()
825 &fattr->cf_mode, in parse_dacl()
831 &fattr->cf_mode, in parse_dacl()
[all …]
/linux-6.1.9/fs/ksmbd/
Dsmbacl.c133 static umode_t access_flags_to_mode(struct smb_fattr *fattr, __le32 ace_flags, in access_flags_to_mode() argument
149 if (S_ISDIR(fattr->cf_mode)) in access_flags_to_mode()
259 struct smb_fattr *fattr) in sid_to_id() argument
281 fattr->cf_uid = uid; in sid_to_id()
292 fattr->cf_gid = gid; in sid_to_id()
368 struct smb_fattr *fattr) in parse_dacl() argument
444 fattr->cf_mode = in parse_dacl()
448 acl_mode = access_flags_to_mode(fattr, in parse_dacl()
461 acl_mode = access_flags_to_mode(fattr, in parse_dacl()
471 acl_mode = access_flags_to_mode(fattr, in parse_dacl()
[all …]
/linux-6.1.9/include/linux/
Dnfs_fs.h391 extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr);
392 extern int nfs_post_op_update_inode_force_wcc(struct inode *inode, struct nfs_fattr *fattr);
393 extern int nfs_post_op_update_inode_force_wcc_locked(struct inode *inode, struct nfs_fattr *fattr);
409 extern void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr);
420 extern void nfs_fattr_init(struct nfs_fattr *fattr);
421 extern void nfs_fattr_set_barrier(struct nfs_fattr *fattr);
437 static inline void nfs_free_fattr(const struct nfs_fattr *fattr) in nfs_free_fattr() argument
439 if (fattr) in nfs_free_fattr()
440 nfs4_label_free(fattr->label); in nfs_free_fattr()
441 kfree(fattr); in nfs_free_fattr()
[all …]
Dnfs_xdr.h140 struct nfs_fattr *fattr; /* Post-op attributes */ member
161 struct nfs_fattr *fattr; /* Post-op attributes */ member
179 struct nfs_fattr *fattr; /* Post-op attributes */ member
310 struct nfs_fattr *fattr; member
317 struct nfs_fattr fattr; member
540 struct nfs_fattr * fattr; member
623 struct nfs_fattr * fattr; member
666 struct nfs_fattr * fattr; member
695 struct nfs_fattr *fattr; member
753 struct nfs_fattr * fattr; member
[all …]

12