Home
last modified time | relevance | path

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

12

/linux/fs/nfs/
H A 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()
312 struct nfs_fattr *fattr; member
326 struct nfs_fattr *fattr = desc->fattr; in nfs_find_actor() local
328 if (NFS_FILEID(inode) != fattr->fileid) in nfs_find_actor()
330 if (inode_wrong_type(inode, fattr->mode)) in nfs_find_actor()
343 struct nfs_fattr *fattr = desc->fattr; in nfs_init_locked() local
345 set_nfs_fileid(inode, fattr in nfs_init_locked()
359 nfs_setsecurity(struct inode * inode,struct nfs_fattr * fattr) nfs_setsecurity() argument
401 nfs_setsecurity(struct inode * inode,struct nfs_fattr * fattr) nfs_setsecurity() argument
409 nfs_ilookup(struct super_block * sb,struct nfs_fattr * fattr,struct nfs_fh * fh) nfs_ilookup() argument
451 nfs_fhget(struct super_block * sb,struct nfs_fh * fh,struct nfs_fattr * fattr) nfs_fhget() argument
623 nfs_fattr_fixup_delegated(struct inode * inode,struct nfs_fattr * fattr) nfs_fattr_fixup_delegated() argument
718 struct nfs_fattr *fattr; nfs_setattr() local
834 nfs_setattr_update_inode(struct inode * inode,struct iattr * attr,struct nfs_fattr * fattr) nfs_setattr_update_inode() argument
1346 struct nfs_fattr *fattr = NULL; __nfs_revalidate_inode() local
1589 nfs_wcc_update_inode(struct inode * inode,struct nfs_fattr * fattr) nfs_wcc_update_inode() argument
1634 nfs_check_inode_attributes(struct inode * inode,struct nfs_fattr * fattr) nfs_check_inode_attributes() argument
1717 nfs_fattr_init(struct nfs_fattr * fattr) nfs_fattr_init() argument
1739 nfs_fattr_set_barrier(struct nfs_fattr * fattr) nfs_fattr_set_barrier() argument
1746 struct nfs_fattr *fattr; nfs_alloc_fattr() local
1759 struct nfs_fattr *fattr = nfs_alloc_fattr(); nfs_alloc_fattr_with_label() local
1861 nfs_inode_attrs_cmp_generic(const struct nfs_fattr * fattr,const struct inode * inode) nfs_inode_attrs_cmp_generic() argument
1886 nfs_inode_attrs_cmp_monotonic(const struct nfs_fattr * fattr,const struct inode * inode) nfs_inode_attrs_cmp_monotonic() argument
1910 nfs_inode_attrs_cmp_strict_monotonic(const struct nfs_fattr * fattr,const struct inode * inode) nfs_inode_attrs_cmp_strict_monotonic() argument
1926 nfs_inode_attrs_cmp(const struct nfs_fattr * fattr,const struct inode * inode) nfs_inode_attrs_cmp() argument
1956 nfs_inode_finish_partial_attr_update(const struct nfs_fattr * fattr,const struct inode * inode) nfs_inode_finish_partial_attr_update() argument
2023 nfs_ooo_record(struct nfs_inode * nfsi,struct nfs_fattr * fattr) nfs_ooo_record() argument
2037 nfs_refresh_inode_locked(struct inode * inode,struct nfs_fattr * fattr) nfs_refresh_inode_locked() argument
2067 nfs_refresh_inode(struct inode * inode,struct nfs_fattr * fattr) nfs_refresh_inode() argument
2082 nfs_post_op_update_inode_locked(struct inode * inode,struct nfs_fattr * fattr,unsigned int invalid) nfs_post_op_update_inode_locked() argument
2106 nfs_post_op_update_inode(struct inode * inode,struct nfs_fattr * fattr) nfs_post_op_update_inode() argument
2133 nfs_post_op_update_inode_force_wcc_locked(struct inode * inode,struct nfs_fattr * fattr) nfs_post_op_update_inode_force_wcc_locked() argument
2190 nfs_post_op_update_inode_force_wcc(struct inode * inode,struct nfs_fattr * fattr) nfs_post_op_update_inode_force_wcc() argument
2215 nfs_update_inode(struct inode * inode,struct nfs_fattr * fattr) nfs_update_inode() argument
[all...]
H A Dexport.c67 struct nfs_fattr *fattr = NULL; in nfs_fh_to_dentry() local
88 fattr = nfs_alloc_fattr_with_label(NFS_SB(sb)); in nfs_fh_to_dentry()
89 if (fattr == NULL) { in nfs_fh_to_dentry()
94 fattr->fileid = ((u64)p[FILEID_HIGH_OFF] << 32) + p[FILEID_LOW_OFF]; in nfs_fh_to_dentry()
95 fattr->mode = p[FILE_I_TYPE_OFF]; in nfs_fh_to_dentry()
96 fattr->valid |= NFS_ATTR_FATTR_FILEID | NFS_ATTR_FATTR_TYPE; in nfs_fh_to_dentry()
98 dprintk("%s: fileid %llu mode %d\n", __func__, fattr->fileid, fattr->mode); in nfs_fh_to_dentry()
100 inode = nfs_ilookup(sb, fattr, server_fh); in nfs_fh_to_dentry()
105 ret = rpc_ops->getattr(NFS_SB(sb), server_fh, fattr, NUL in nfs_fh_to_dentry()
130 struct nfs_fattr *fattr = NULL; nfs_get_parent() local
[all...]
H A Dnfs4getroot.c15 struct nfs_fattr *fattr = nfs_alloc_fattr(); in nfs4_get_rootfh() local
18 if (fattr == NULL) in nfs4_get_rootfh()
22 ret = nfs4_proc_get_rootfh(server, mntfh, fattr, auth_probe); in nfs4_get_rootfh()
28 if (!(fattr->valid & NFS_ATTR_FATTR_TYPE) || !S_ISDIR(fattr->mode)) { in nfs4_get_rootfh()
35 memcpy(&server->fsid, &fattr->fsid, sizeof(server->fsid)); in nfs4_get_rootfh()
37 nfs_free_fattr(fattr); in nfs4_get_rootfh()
H A 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()
157 __nfs3_proc_lookup(struct inode * dir,const char * name,size_t len,struct nfs_fh * fhandle,struct nfs_fattr * fattr,unsigned short task_flags) __nfs3_proc_lookup() argument
196 nfs3_proc_lookup(struct inode * dir,struct dentry * dentry,const struct qstr * name,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs3_proc_lookup() argument
210 nfs3_proc_lookupp(struct inode * inode,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs3_proc_lookupp() argument
257 struct nfs_fattr *fattr; nfs3_proc_readlink() local
294 struct nfs_fattr fattr; global() member
[all...]
H A Dnfs4idmap.c85 * @fattr: fully initialised struct nfs_fattr
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 in nfs_fattr_free_group_name()
109 nfs_fattr_map_owner_name(struct nfs_server * server,struct nfs_fattr * fattr) nfs_fattr_map_owner_name() argument
123 nfs_fattr_map_group_name(struct nfs_server * server,struct nfs_fattr * fattr) nfs_fattr_map_group_name() argument
141 nfs_fattr_free_names(struct nfs_fattr * fattr) nfs_fattr_free_names() argument
157 nfs_fattr_map_and_free_names(struct nfs_server * server,struct nfs_fattr * fattr) nfs_fattr_map_and_free_names() argument
[all...]
H A Dnfs3acl.c89 res.fattr = nfs_alloc_fattr(); in nfs3_get_acl()
90 if (res.fattr == NULL) in nfs3_get_acl()
107 nfs_refresh_inode(inode, res.fattr); in nfs3_get_acl()
143 nfs_free_fattr(res.fattr); in nfs3_get_acl()
157 nfs_free_fattr(res.fattr); in nfs3_get_acl()
165 struct nfs_fattr *fattr; in __nfs3_proc_setacls() local
175 .rpc_resp = &fattr, in __nfs3_proc_setacls()
214 fattr = nfs_alloc_fattr(); in __nfs3_proc_setacls()
215 if (fattr == NULL) in __nfs3_proc_setacls()
219 msg.rpc_resp = fattr; in __nfs3_proc_setacls()
[all...]
H A Dnfs2xdr.c242 * 2.3.5. fattr
244 * struct fattr {
262 static int decode_fattr(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_fattr() argument
272 fattr->valid |= NFS_ATTR_FATTR_V2; in decode_fattr()
276 fattr->mode = be32_to_cpup(p++); in decode_fattr()
277 fattr->nlink = be32_to_cpup(p++); in decode_fattr()
278 fattr->uid = make_kuid(userns, be32_to_cpup(p++)); in decode_fattr()
279 if (!uid_valid(fattr->uid)) in decode_fattr()
281 fattr->gid = make_kgid(userns, be32_to_cpup(p++)); in decode_fattr()
282 if (!gid_valid(fattr in decode_fattr()
[all...]
H A Dnfs3xdr.c620 static int decode_fattr3(struct xdr_stream *xdr, struct nfs_fattr *fattr, in decode_fattr3() argument
632 fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode; in decode_fattr3()
633 fattr->nlink = be32_to_cpup(p++); in decode_fattr3()
634 fattr->uid = make_kuid(userns, be32_to_cpup(p++)); in decode_fattr3()
635 if (!uid_valid(fattr->uid)) in decode_fattr3()
637 fattr->gid = make_kgid(userns, be32_to_cpup(p++)); in decode_fattr3()
638 if (!gid_valid(fattr->gid)) in decode_fattr3()
641 p = xdr_decode_size3(p, &fattr->size); in decode_fattr3()
642 p = xdr_decode_size3(p, &fattr->du.nfs3.used); in decode_fattr3()
643 p = xdr_decode_specdata3(p, &fattr in decode_fattr3()
674 decode_post_op_attr(struct xdr_stream * xdr,struct nfs_fattr * fattr,struct user_namespace * userns) decode_post_op_attr() argument
695 decode_wcc_attr(struct xdr_stream * xdr,struct nfs_fattr * fattr) decode_wcc_attr() argument
732 decode_pre_op_attr(struct xdr_stream * xdr,struct nfs_fattr * fattr) decode_pre_op_attr() argument
744 decode_wcc_data(struct xdr_stream * xdr,struct nfs_fattr * fattr,struct user_namespace * userns) decode_wcc_data() argument
[all...]
H A 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()
H A Dclient.c897 static int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs_fattr *fattr) in nfs_probe_fsinfo() argument
909 fsinfo.fattr = fattr; in nfs_probe_fsinfo()
922 pathinfo.fattr = fattr; in nfs_probe_fsinfo()
923 nfs_fattr_init(fattr); in nfs_probe_fsinfo()
948 struct nfs_fattr *fattr; in nfs_probe_server() local
951 fattr = nfs_alloc_fattr(); in nfs_probe_server()
952 if (fattr == NULL) in nfs_probe_server()
957 error = nfs_probe_fsinfo(server, mntfh, fattr); in nfs_probe_server()
1113 struct nfs_fattr *fattr; nfs_create_server() local
1179 nfs_clone_server(struct nfs_server * source,struct nfs_fh * fh,struct nfs_fattr * fattr,rpc_authflavor_t flavor) nfs_clone_server() argument
[all...]
H A Dlocalio.c565 struct nfs_fattr *fattr = hdr->res.fattr; in nfs_local_vfs_getattr() local
568 if (unlikely(!fattr) || __vfs_getattr(&filp->f_path, &stat, version)) in nfs_local_vfs_getattr()
571 fattr->valid = (NFS_ATTR_FATTR_FILEID | in nfs_local_vfs_getattr()
579 fattr->fileid = stat.ino; in nfs_local_vfs_getattr()
580 fattr->size = stat.size; in nfs_local_vfs_getattr()
581 fattr->atime = stat.atime; in nfs_local_vfs_getattr()
582 fattr->mtime = stat.mtime; in nfs_local_vfs_getattr()
583 fattr->ctime = stat.ctime; in nfs_local_vfs_getattr()
585 fattr in nfs_local_vfs_getattr()
[all...]
H A 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,
401 static void nfs4_fattr_set_prechange(struct nfs_fattr *fattr, u64 version) in nfs4_fattr_set_prechange() argument
403 if (!(fattr->valid & NFS_ATTR_FATTR_PRECHANGE)) { in nfs4_fattr_set_prechange()
404 fattr->pre_change_attr = version; in nfs4_fattr_set_prechange()
405 fattr->valid |= NFS_ATTR_FATTR_PRECHANGE; in nfs4_fattr_set_prechange()
3414 nfs_fattr_init(res->fattr); in _nfs4_do_setattr()
3456 struct nfs_fattr *fattr, struct iattr *sattr, in nfs4_do_setattr() argument
3470 .fattr in nfs4_do_setattr()
3635 struct nfs_fattr fattr; global() member
4243 _nfs4_lookup_root(struct nfs_server * server,struct nfs_fh * fhandle,struct nfs_fattr * fattr) _nfs4_lookup_root() argument
4268 nfs4_lookup_root(struct nfs_server * server,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs4_lookup_root() argument
4290 nfs4_lookup_root_sec(struct nfs_server * server,struct nfs_fh * fhandle,struct nfs_fattr * fattr,rpc_authflavor_t flavor) nfs4_lookup_root_sec() argument
4314 nfs4_find_root_sec(struct nfs_server * server,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs4_find_root_sec() argument
4370 nfs4_proc_get_rootfh(struct nfs_server * server,struct nfs_fh * fhandle,struct nfs_fattr * fattr,bool auth_probe) nfs4_proc_get_rootfh() argument
4388 struct nfs_fattr *fattr = info->fattr; nfs4_proc_get_root() local
4416 nfs4_get_referral(struct rpc_clnt * client,struct inode * dir,const struct qstr * name,struct nfs_fattr * fattr,struct nfs_fh * fhandle) nfs4_get_referral() argument
4458 _nfs4_proc_getattr(struct nfs_server * server,struct nfs_fh * fhandle,struct nfs_fattr * fattr,struct inode * inode) _nfs4_proc_getattr() argument
4491 nfs4_proc_getattr(struct nfs_server * server,struct nfs_fh * fhandle,struct nfs_fattr * fattr,struct inode * inode) nfs4_proc_getattr() argument
4524 nfs4_proc_setattr(struct dentry * dentry,struct nfs_fattr * fattr,struct iattr * sattr) nfs4_proc_setattr() argument
4569 _nfs4_proc_lookup(struct rpc_clnt * clnt,struct inode * dir,struct dentry * dentry,const struct qstr * name,struct nfs_fh * fhandle,struct nfs_fattr * fattr) _nfs4_proc_lookup() argument
4609 nfs_fixup_secinfo_attributes(struct nfs_fattr * fattr) nfs_fixup_secinfo_attributes() argument
4619 nfs4_proc_lookup_common(struct rpc_clnt ** clnt,struct inode * dir,struct dentry * dentry,const struct qstr * name,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs4_proc_lookup_common() argument
4663 nfs4_proc_lookup(struct inode * dir,struct dentry * dentry,const struct qstr * name,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs4_proc_lookup() argument
4678 nfs4_proc_lookup_mountpoint(struct inode * dir,struct dentry * dentry,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs4_proc_lookup_mountpoint() argument
4691 _nfs4_proc_lookupp(struct inode * inode,struct nfs_fh * fhandle,struct nfs_fattr * fattr) _nfs4_proc_lookupp() argument
4727 nfs4_proc_lookupp(struct inode * inode,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs4_proc_lookupp() argument
5116 struct nfs_fattr fattr; global() member
6330 struct nfs_fattr fattr = { _nfs4_get_security_label() local
6380 _nfs4_do_set_security_label(struct inode * inode,struct nfs4_label * ilabel,struct nfs_fattr * fattr) _nfs4_do_set_security_label() argument
6415 nfs4_do_set_security_label(struct inode * inode,struct nfs4_label * ilabel,struct nfs_fattr * fattr) nfs4_do_set_security_label() argument
6433 struct nfs_fattr *fattr; nfs4_set_security_label() local
6734 struct nfs_fattr fattr; global() member
8216 nfs_fixup_referral_attributes(struct nfs_fattr * fattr) nfs_fixup_referral_attributes() argument
10434 nfs41_find_root_sec(struct nfs_server * server,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs41_find_root_sec() argument
10964 nfs4_clone_server(struct nfs_server * source,struct nfs_fh * fh,struct nfs_fattr * fattr,rpc_authflavor_t flavor) nfs4_clone_server() argument
[all...]
H A Dnfs4file.c307 struct nfs_fattr *fattr = nfs_alloc_fattr(); in __nfs42_ssc_open() local
318 if (!fattr) in __nfs42_ssc_open()
321 status = nfs4_proc_getattr(server, src_fh, fattr, NULL); in __nfs42_ssc_open()
327 if (!S_ISREG(fattr->mode)) { in __nfs42_ssc_open()
339 r_ino = nfs_fhget(ss_mnt->mnt_sb, src_fh, fattr); in __nfs42_ssc_open()
383 nfs_free_fattr(fattr); in __nfs42_ssc_open()
H A Ddir.c632 entry->fattr->time_start = desc->timestamp; in xdr_decode()
633 entry->fattr->gencount = desc->gencount; in xdr_decode()
654 if (entry->fattr->fileid != nfsi->fileid) in nfs_same_file()
736 if (!(entry->fattr->valid & NFS_ATTR_FATTR_FILEID)) in nfs_prime_dcache()
738 if (!(entry->fattr->valid & NFS_ATTR_FATTR_FSID)) in nfs_prime_dcache()
766 &entry->fattr->fsid)) in nfs_prime_dcache()
772 status = nfs_refresh_inode(d_inode(dentry), entry->fattr); in nfs_prime_dcache()
774 nfs_setsecurity(d_inode(dentry), entry->fattr); in nfs_prime_dcache()
792 inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr); in nfs_prime_dcache()
813 if (entry->fattr in nfs_readdir_entry_decode()
1683 struct nfs_fattr *fattr; nfs_lookup_revalidate_dentry() local
1949 struct nfs_fattr *fattr = NULL; nfs_lookup() local
2299 nfs_add_or_obtain(struct dentry * dentry,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs_add_or_obtain() argument
2338 nfs_instantiate(struct dentry * dentry,struct nfs_fh * fhandle,struct nfs_fattr * fattr) nfs_instantiate() argument
[all...]
H A 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()
H A Dnfs4xdr.c4710 struct nfs_fattr *fattr, struct nfs_fh *fh, in decode_getfattr_attrs() argument
4721 fattr->mode = 0; in decode_getfattr_attrs()
4723 fattr->mode |= nfs_type2fmt[type]; in decode_getfattr_attrs()
4724 fattr->valid |= status; in decode_getfattr_attrs()
4727 status = decode_attr_change(xdr, bitmap, &fattr->change_attr); in decode_getfattr_attrs()
4730 fattr->valid |= status; in decode_getfattr_attrs()
4732 status = decode_attr_size(xdr, bitmap, &fattr->size); in decode_getfattr_attrs()
4735 fattr->valid |= status; in decode_getfattr_attrs()
4737 status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); in decode_getfattr_attrs()
4740 fattr in decode_getfattr_attrs()
4841 decode_getfattr_generic(struct xdr_stream * xdr,struct nfs_fattr * fattr,struct nfs_fh * fh,struct nfs4_fs_locations * fs_loc,const struct nfs_server * server) decode_getfattr_generic() argument
4872 decode_getfattr(struct xdr_stream * xdr,struct nfs_fattr * fattr,const struct nfs_server * server) decode_getfattr() argument
[all...]
/linux/fs/smb/client/
H A Dinode.c95 cifs_revalidate_cache(struct inode *inode, struct cifs_fattr *fattr) in cifs_revalidate_cache() argument
118 fattr->cf_mtime = timestamp_truncate(fattr->cf_mtime, inode); in cifs_revalidate_cache()
120 if (timespec64_equal(&mtime, &fattr->cf_mtime) && in cifs_revalidate_cache()
121 cifs_i->netfs.remote_i_size == fattr->cf_eof) { in cifs_revalidate_cache()
140 cifs_nlink_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr) in cifs_nlink_fattr_to_inode() argument
147 if (fattr->cf_flags & CIFS_FATTR_UNKNOWN_NLINK) { in cifs_nlink_fattr_to_inode()
150 if (fattr->cf_cifsattrs & ATTR_DIRECTORY) in cifs_nlink_fattr_to_inode()
159 set_nlink(inode, fattr->cf_nlink); in cifs_nlink_fattr_to_inode()
164 cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr, in cifs_fattr_to_inode() argument
171 unlikely(inode_wrong_type(inode, fattr->cf_mode))) { in cifs_fattr_to_inode()
[all …]
H A Dreaddir.c69 struct cifs_fattr *fattr) in cifs_prime_dcache() argument
92 switch (fattr->cf_mode & S_IFMT) { in cifs_prime_dcache()
101 } else if (fattr->cf_cifsattrs & ATTR_REPARSE) { in cifs_prime_dcache()
106 (fattr->cf_flags & CIFS_FATTR_NEED_REVAL)) in cifs_prime_dcache()
126 fattr->cf_uniqueid = CIFS_I(inode)->uniqueid; in cifs_prime_dcache()
132 if (CIFS_I(inode)->uniqueid == fattr->cf_uniqueid) { in cifs_prime_dcache()
141 if (fattr->cf_cifsattrs & ATTR_REPARSE) { in cifs_prime_dcache()
142 if (likely(reparse_inode_match(inode, fattr))) { in cifs_prime_dcache()
143 fattr->cf_mode = inode->i_mode; in cifs_prime_dcache()
144 fattr in cifs_prime_dcache()
176 cifs_fill_common_info(struct cifs_fattr * fattr,struct cifs_sb_info * cifs_sb) cifs_fill_common_info() argument
242 cifs_posix_to_fattr(struct cifs_fattr * fattr,struct smb2_posix_info * info,struct cifs_sb_info * cifs_sb) cifs_posix_to_fattr() argument
288 __dir_info_to_fattr(struct cifs_fattr * fattr,const void * info) __dir_info_to_fattr() argument
303 cifs_dir_info_to_fattr(struct cifs_fattr * fattr,FILE_DIRECTORY_INFO * info,struct cifs_sb_info * cifs_sb) cifs_dir_info_to_fattr() argument
310 cifs_fulldir_info_to_fattr(struct cifs_fattr * fattr,const void * info,struct cifs_sb_info * cifs_sb) cifs_fulldir_info_to_fattr() argument
325 cifs_std_info_to_fattr(struct cifs_fattr * fattr,FIND_FILE_STANDARD_INFO * info,struct cifs_sb_info * cifs_sb) cifs_std_info_to_fattr() argument
880 add_cached_dirent(struct cached_dirents * cde,struct dir_context * ctx,const char * name,int namelen,struct cifs_fattr * fattr,struct file * file) add_cached_dirent() argument
914 cifs_dir_emit(struct dir_context * ctx,const char * name,int namelen,struct cifs_fattr * fattr,struct cached_fid * cfid,struct file * file) cifs_dir_emit() argument
944 struct cifs_fattr fattr; cifs_filldir() local
[all...]
H A Dreparse.c1109 u32 tag, struct cifs_fattr *fattr) in wsl_to_fattr() argument
1117 fattr->cf_mode |= S_IFLNK; in wsl_to_fattr()
1120 fattr->cf_mode |= S_IFIFO; in wsl_to_fattr()
1123 fattr->cf_mode |= S_IFSOCK; in wsl_to_fattr()
1126 fattr->cf_mode |= S_IFCHR; in wsl_to_fattr()
1129 fattr->cf_mode |= S_IFBLK; in wsl_to_fattr()
1152 fattr->cf_uid = wsl_make_kuid(cifs_sb, v); in wsl_to_fattr()
1154 fattr->cf_gid = wsl_make_kgid(cifs_sb, v); in wsl_to_fattr()
1157 if (S_DT(fattr->cf_mode) != S_DT(le32_to_cpu(*(__le32 *)v))) in wsl_to_fattr()
1159 fattr in wsl_to_fattr()
1175 posix_reparse_to_fattr(struct cifs_sb_info * cifs_sb,struct cifs_fattr * fattr,struct cifs_open_info_data * data) posix_reparse_to_fattr() argument
1222 cifs_reparse_point_to_fattr(struct cifs_sb_info * cifs_sb,struct cifs_fattr * fattr,struct cifs_open_info_data * data) cifs_reparse_point_to_fattr() argument
[all...]
H A Dreparse.h82 struct cifs_fattr *fattr) in reparse_inode_match() argument
89 * FSCTL_GET_REPARSE_POINT. @fattr->cf_cifstag should contain correct in reparse_inode_match()
94 cinode->reparse_tag != fattr->cf_cifstag) in reparse_inode_match()
97 timespec64_equal(&ctime, &fattr->cf_ctime); in reparse_inode_match()
130 struct cifs_fattr *fattr,
H A Dlink.c148 couldbe_mf_symlink(const struct cifs_fattr *fattr) in couldbe_mf_symlink() argument
150 if (!S_ISREG(fattr->cf_mode)) in couldbe_mf_symlink()
154 if (fattr->cf_eof != CIFS_MF_SYMLINK_FILE_SIZE) in couldbe_mf_symlink()
196 struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, in check_mf_symlink() argument
205 if (!couldbe_mf_symlink(fattr)) in check_mf_symlink()
236 fattr->cf_eof = link_len; in check_mf_symlink()
237 fattr->cf_mode &= ~S_IFMT; in check_mf_symlink()
238 fattr->cf_mode |= S_IFLNK | S_IRWXU | S_IRWXG | S_IRWXO; in check_mf_symlink()
239 fattr->cf_dtype = DT_LNK; in check_mf_symlink()
240 fattr in check_mf_symlink()
[all...]
H A Dcifsacl.c340 struct cifs_fattr *fattr, uint sidtype) in sid_to_id() argument
451 fattr->cf_uid = fuid; in sid_to_id()
453 fattr->cf_gid = fgid; in sid_to_id()
763 struct cifs_fattr *fattr, bool mode_from_special_sid) in parse_dacl() argument
776 fattr->cf_mode |= 0777; in parse_dacl()
794 fattr->cf_mode &= ~(0777); in parse_dacl()
842 fattr->cf_mode &= ~07777; in parse_dacl()
843 fattr->cf_mode |= in parse_dacl()
850 &fattr->cf_mode, in parse_dacl()
856 &fattr in parse_dacl()
1221 parse_sec_desc(struct cifs_sb_info * cifs_sb,struct smb_ntsd * pntsd,int acl_len,struct cifs_fattr * fattr,bool get_mode_from_special_sid) parse_sec_desc() argument
1559 cifs_acl_to_fattr(struct cifs_sb_info * cifs_sb,struct cifs_fattr * fattr,struct inode * inode,bool mode_from_special_sid,const char * path,const struct cifs_fid * pfid) cifs_acl_to_fattr() argument
[all...]
/linux/fs/
H A Dfile_attr.c98 struct file_attr *fattr) in fileattr_to_file_attr() argument
102 memset(fattr, 0, sizeof(struct file_attr)); in fileattr_to_file_attr()
103 fattr->fa_xflags = fa->fsx_xflags & mask; in fileattr_to_file_attr()
104 fattr->fa_extsize = fa->fsx_extsize; in fileattr_to_file_attr()
105 fattr->fa_nextents = fa->fsx_nextents; in fileattr_to_file_attr()
106 fattr->fa_projid = fa->fsx_projid; in fileattr_to_file_attr()
107 fattr->fa_cowextsize = fa->fsx_cowextsize; in fileattr_to_file_attr()
136 static int file_attr_to_fileattr(const struct file_attr *fattr, in file_attr_to_fileattr() argument
141 if (fattr->fa_xflags & ~mask) in file_attr_to_fileattr()
144 fileattr_fill_xflags(fa, fattr in file_attr_to_fileattr()
389 struct file_attr fattr; SYSCALL_DEFINE5() local
444 struct file_attr fattr; SYSCALL_DEFINE5() local
[all...]
/linux/include/linux/
H A Dnfs_fs.h446 extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr);
447 extern int nfs_post_op_update_inode_force_wcc(struct inode *inode, struct nfs_fattr *fattr);
448 extern int nfs_post_op_update_inode_force_wcc_locked(struct inode *inode, struct nfs_fattr *fattr);
464 extern void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr);
475 extern void nfs_fattr_init(struct nfs_fattr *fattr);
476 extern void nfs_fattr_set_barrier(struct nfs_fattr *fattr);
492 static inline void nfs_free_fattr(const struct nfs_fattr *fattr) in nfs_free_fattr() argument
494 if (fattr) in nfs_free_fattr()
495 nfs4_label_free(fattr->label); in nfs_free_fattr()
496 kfree(fattr); in nfs_free_fattr()
[all...]
H A Dnfs_xdr.h143 struct nfs_fattr *fattr; /* Post-op attributes */ member
164 struct nfs_fattr *fattr; /* Post-op attributes */ member
182 struct nfs_fattr *fattr; /* Post-op attributes */ member
313 struct nfs_fattr *fattr; member
320 struct nfs_fattr fattr; member
556 struct nfs_fattr * fattr; member
647 struct nfs_fattr * fattr; member
692 struct nfs_fattr * fattr; member
722 struct nfs_fattr *fattr; member
780 struct nfs_fattr * fattr; member
870 struct nfs_fattr * fattr; global() member
915 struct nfs_fattr * fattr; global() member
996 struct nfs_fattr * fattr; global() member
1000 struct nfs_fattr * fattr; global() member
1013 struct nfs_fattr * fattr; global() member
1023 struct nfs_fattr * fattr; global() member
1045 struct nfs_fattr * fattr; global() member
1076 struct nfs_fattr * fattr; global() member
1100 struct nfs_fattr * fattr; global() member
1114 struct nfs_fattr * fattr; global() member
1129 struct nfs_fattr * fattr; global() member
1142 struct nfs_fattr *fattr; global() member
1261 struct nfs_fattr *fattr; global() member
1572 struct nfs_fattr *fattr; global() member
1671 struct nfs_fattr fattr; global() member
1709 struct nfs_fattr fattr; global() member
[all...]

12