/fs/nfs/ |
D | inode.c | 69 nfs_fattr_to_ino_t(struct nfs_fattr *fattr) in nfs_fattr_to_ino_t() argument 71 return nfs_fileid_to_ino_t(fattr->fileid); in nfs_fattr_to_ino_t() 245 struct nfs_fattr *fattr; member 259 struct nfs_fattr *fattr = desc->fattr; in nfs_find_actor() local 261 if (NFS_FILEID(inode) != fattr->fileid) in nfs_find_actor() 263 if ((S_IFMT & inode->i_mode) != (S_IFMT & fattr->mode)) in nfs_find_actor() 276 struct nfs_fattr *fattr = desc->fattr; in nfs_init_locked() local 278 set_nfs_fileid(inode, fattr->fileid); in nfs_init_locked() 291 void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr, in nfs_setsecurity() argument 299 if ((fattr->valid & NFS_ATTR_FATTR_V4_SECURITY_LABEL) && inode->i_security) { in nfs_setsecurity() [all …]
|
D | nfs3proc.c | 71 nfs_fattr_init(info->fattr); in do_proc_get_root() 74 if (status == 0 && !(info->fattr->valid & NFS_ATTR_FATTR)) { in do_proc_get_root() 76 msg.rpc_resp = info->fattr; in do_proc_get_root() 103 struct nfs_fattr *fattr, struct nfs4_label *label) in nfs3_proc_getattr() argument 108 .rpc_resp = fattr, in nfs3_proc_getattr() 113 nfs_fattr_init(fattr); in nfs3_proc_getattr() 120 nfs3_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr, in nfs3_proc_setattr() argument 131 .rpc_resp = fattr, in nfs3_proc_setattr() 138 nfs_fattr_init(fattr); in nfs3_proc_setattr() 141 nfs_setattr_update_inode(inode, sattr, fattr); in nfs3_proc_setattr() [all …]
|
D | proc.c | 56 struct nfs_fattr *fattr = info->fattr; in nfs_proc_get_root() local 61 .rpc_resp = fattr, in nfs_proc_get_root() 66 nfs_fattr_init(fattr); in nfs_proc_get_root() 101 struct nfs_fattr *fattr, struct nfs4_label *label) in nfs_proc_getattr() argument 106 .rpc_resp = fattr, in nfs_proc_getattr() 111 nfs_fattr_init(fattr); in nfs_proc_getattr() 118 nfs_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr, in nfs_proc_setattr() argument 129 .rpc_resp = fattr, in nfs_proc_setattr() 139 nfs_fattr_init(fattr); in nfs_proc_setattr() 142 nfs_setattr_update_inode(inode, sattr, fattr); in nfs_proc_setattr() [all …]
|
D | nfs4idmap.c | 79 void nfs_fattr_init_names(struct nfs_fattr *fattr, in nfs_fattr_init_names() argument 83 fattr->owner_name = owner_name; in nfs_fattr_init_names() 84 fattr->group_name = group_name; in nfs_fattr_init_names() 87 static void nfs_fattr_free_owner_name(struct nfs_fattr *fattr) in nfs_fattr_free_owner_name() argument 89 fattr->valid &= ~NFS_ATTR_FATTR_OWNER_NAME; in nfs_fattr_free_owner_name() 90 kfree(fattr->owner_name->data); in nfs_fattr_free_owner_name() 93 static void nfs_fattr_free_group_name(struct nfs_fattr *fattr) in nfs_fattr_free_group_name() argument 95 fattr->valid &= ~NFS_ATTR_FATTR_GROUP_NAME; in nfs_fattr_free_group_name() 96 kfree(fattr->group_name->data); in nfs_fattr_free_group_name() 99 static bool nfs_fattr_map_owner_name(struct nfs_server *server, struct nfs_fattr *fattr) in nfs_fattr_map_owner_name() argument [all …]
|
D | nfs4getroot.c | 19 fsinfo.fattr = nfs_alloc_fattr(); in nfs4_get_rootfh() 20 if (fsinfo.fattr == NULL) in nfs4_get_rootfh() 30 if (!(fsinfo.fattr->valid & NFS_ATTR_FATTR_TYPE) in nfs4_get_rootfh() 31 || !S_ISDIR(fsinfo.fattr->mode)) { in nfs4_get_rootfh() 38 memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); in nfs4_get_rootfh() 40 nfs_free_fattr(fsinfo.fattr); in nfs4_get_rootfh()
|
D | namespace.c | 148 struct nfs_fattr *fattr = NULL; in nfs_d_automount() local 158 fattr = nfs_alloc_fattr(); in nfs_d_automount() 159 if (fh == NULL || fattr == NULL) in nfs_d_automount() 164 mnt = server->nfs_client->rpc_ops->submount(server, path->dentry, fh, fattr); in nfs_d_automount() 174 nfs_free_fattr(fattr); in nfs_d_automount() 245 struct nfs_fattr *fattr, rpc_authflavor_t authflavor) in nfs_do_submount() argument 251 .fattr = fattr, in nfs_do_submount() 280 struct nfs_fh *fh, struct nfs_fattr *fattr) in nfs_submount() argument 286 err = server->nfs_client->rpc_ops->lookup(d_inode(parent), &dentry->d_name, fh, fattr, NULL); in nfs_submount() 291 return nfs_do_submount(dentry, fh, fattr, server->client->cl_auth->au_flavor); in nfs_submount()
|
D | nfs3xdr.c | 648 static int decode_fattr3(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_fattr3() argument 659 fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode; in decode_fattr3() 660 fattr->nlink = be32_to_cpup(p++); in decode_fattr3() 661 fattr->uid = make_kuid(&init_user_ns, be32_to_cpup(p++)); in decode_fattr3() 662 if (!uid_valid(fattr->uid)) in decode_fattr3() 664 fattr->gid = make_kgid(&init_user_ns, be32_to_cpup(p++)); in decode_fattr3() 665 if (!gid_valid(fattr->gid)) in decode_fattr3() 668 p = xdr_decode_size3(p, &fattr->size); in decode_fattr3() 669 p = xdr_decode_size3(p, &fattr->du.nfs3.used); in decode_fattr3() 670 p = xdr_decode_specdata3(p, &fattr->rdev); in decode_fattr3() [all …]
|
D | nfs2xdr.c | 278 static int decode_fattr(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_fattr() argument 287 fattr->valid |= NFS_ATTR_FATTR_V2; in decode_fattr() 291 fattr->mode = be32_to_cpup(p++); in decode_fattr() 292 fattr->nlink = be32_to_cpup(p++); in decode_fattr() 293 fattr->uid = make_kuid(&init_user_ns, be32_to_cpup(p++)); in decode_fattr() 294 if (!uid_valid(fattr->uid)) in decode_fattr() 296 fattr->gid = make_kgid(&init_user_ns, be32_to_cpup(p++)); in decode_fattr() 297 if (!gid_valid(fattr->gid)) in decode_fattr() 300 fattr->size = be32_to_cpup(p++); in decode_fattr() 301 fattr->du.nfs2.blocksize = be32_to_cpup(p++); in decode_fattr() [all …]
|
D | nfs3acl.c | 54 res.fattr = nfs_alloc_fattr(); in nfs3_get_acl() 55 if (res.fattr == NULL) in nfs3_get_acl() 67 status = nfs_refresh_inode(inode, res.fattr); in nfs3_get_acl() 101 nfs_free_fattr(res.fattr); in nfs3_get_acl() 113 nfs_free_fattr(res.fattr); in nfs3_get_acl() 121 struct nfs_fattr *fattr; in __nfs3_proc_setacls() local 131 .rpc_resp = &fattr, in __nfs3_proc_setacls() 170 fattr = nfs_alloc_fattr(); in __nfs3_proc_setacls() 171 if (fattr == NULL) in __nfs3_proc_setacls() 175 msg.rpc_resp = fattr; in __nfs3_proc_setacls() [all …]
|
D | getroot.c | 85 fsinfo.fattr = nfs_alloc_fattr(); in nfs_get_root() 86 if (fsinfo.fattr == NULL) { in nfs_get_root() 98 inode = nfs_fhget(sb, mntfh, fsinfo.fattr, NULL); in nfs_get_root() 131 nfs_free_fattr(fsinfo.fattr); in nfs_get_root()
|
D | client.c | 775 int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs_fattr *fattr) in nfs_probe_fsinfo() argument 789 fsinfo.fattr = fattr; in nfs_probe_fsinfo() 801 pathinfo.fattr = fattr; in nfs_probe_fsinfo() 802 nfs_fattr_init(fattr); in nfs_probe_fsinfo() 947 struct nfs_fattr *fattr; in nfs_create_server() local 955 fattr = nfs_alloc_fattr(); in nfs_create_server() 956 if (fattr == NULL) in nfs_create_server() 965 error = nfs_probe_fsinfo(server, mount_info->mntfh, fattr); in nfs_create_server() 978 if (!(fattr->valid & NFS_ATTR_FATTR)) { in nfs_create_server() 979 error = nfs_mod->rpc_ops->getattr(server, mount_info->mntfh, fattr, NULL); in nfs_create_server() [all …]
|
D | dir.c | 418 entry->fattr->time_start = desc->timestamp; in xdr_decode() 419 entry->fattr->gencount = desc->gencount; in xdr_decode() 435 if (entry->fattr->fileid == nfsi->fileid) in nfs_same_file() 491 if (!(entry->fattr->valid & NFS_ATTR_FATTR_FILEID)) in nfs_prime_dcache() 493 if (!(entry->fattr->valid & NFS_ATTR_FATTR_FSID)) in nfs_prime_dcache() 507 &entry->fattr->fsid)) in nfs_prime_dcache() 511 status = nfs_refresh_inode(d_inode(dentry), entry->fattr); in nfs_prime_dcache() 513 nfs_setsecurity(d_inode(dentry), entry->fattr, entry->label); in nfs_prime_dcache() 525 inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr, entry->label); in nfs_prime_dcache() 646 entry.fattr = nfs_alloc_fattr(); in nfs_readdir_xdr_to_array() [all …]
|
D | nfs4proc.c | 80 static void nfs_fixup_referral_attributes(struct nfs_fattr *fattr); 82 …attr(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *fattr, struct nfs4_label… 84 struct nfs_fattr *fattr, struct iattr *sattr, 2657 struct nfs_fattr *fattr, struct iattr *sattr, in _nfs4_do_setattr() argument 2670 .fattr = fattr, in _nfs4_do_setattr() 2689 nfs_fattr_init(fattr); in _nfs4_do_setattr() 2717 struct nfs_fattr *fattr, struct iattr *sattr, in nfs4_do_setattr() argument 2728 err = _nfs4_do_setattr(inode, cred, fattr, sattr, state, ilabel, olabel); in nfs4_do_setattr() 2766 struct nfs_fattr fattr; member 2831 nfs_refresh_inode(calldata->inode, calldata->res.fattr); in nfs4_close_done() [all …]
|
D | internal.h | 23 static inline void nfs_attr_check_mountpoint(struct super_block *parent, struct nfs_fattr *fattr) in nfs_attr_check_mountpoint() argument 25 if (!nfs_fsid_equal(&NFS_SB(parent)->fsid, &fattr->fsid)) in nfs_attr_check_mountpoint() 26 fattr->valid |= NFS_ATTR_FATTR_MOUNTPOINT; in nfs_attr_check_mountpoint() 29 static inline int nfs_attr_use_mounted_on_fileid(struct nfs_fattr *fattr) in nfs_attr_use_mounted_on_fileid() argument 31 if (((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) == 0) || in nfs_attr_use_mounted_on_fileid() 32 (((fattr->valid & NFS_ATTR_FATTR_MOUNTPOINT) == 0) && in nfs_attr_use_mounted_on_fileid() 33 ((fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) == 0))) in nfs_attr_use_mounted_on_fileid() 42 struct nfs_fattr *fattr; member
|
D | nfs4xdr.c | 4535 struct nfs_fattr *fattr, struct nfs_fh *fh, in decode_getfattr_attrs() argument 4547 fattr->mode = 0; in decode_getfattr_attrs() 4549 fattr->mode |= nfs_type2fmt[type]; in decode_getfattr_attrs() 4550 fattr->valid |= status; in decode_getfattr_attrs() 4553 status = decode_attr_change(xdr, bitmap, &fattr->change_attr); in decode_getfattr_attrs() 4556 fattr->valid |= status; in decode_getfattr_attrs() 4558 status = decode_attr_size(xdr, bitmap, &fattr->size); in decode_getfattr_attrs() 4561 fattr->valid |= status; in decode_getfattr_attrs() 4563 status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); in decode_getfattr_attrs() 4566 fattr->valid |= status; in decode_getfattr_attrs() [all …]
|
D | nfs4client.c | 913 struct nfs_fattr *fattr; in nfs4_server_common_setup() local 920 fattr = nfs_alloc_fattr(); in nfs4_server_common_setup() 921 if (fattr == NULL) in nfs4_server_common_setup() 952 error = nfs_probe_fsinfo(server, mntfh, fattr); in nfs4_server_common_setup() 965 nfs_free_fattr(fattr); in nfs4_server_common_setup() 1135 struct nfs_fattr *fattr; in nfs_probe_destination() local 1138 fattr = nfs_alloc_fattr(); in nfs_probe_destination() 1139 if (fattr == NULL) in nfs_probe_destination() 1144 error = nfs_probe_fsinfo(server, NFS_FH(inode), fattr); in nfs_probe_destination() 1146 nfs_free_fattr(fattr); in nfs_probe_destination()
|
D | write.c | 1403 struct nfs_fattr *fattr) in nfs_writeback_check_extend() argument 1409 if (!(fattr->valid & NFS_ATTR_FATTR_SIZE)) in nfs_writeback_check_extend() 1410 fattr->size = size; in nfs_writeback_check_extend() 1411 if (nfs_size_to_loff_t(fattr->size) < i_size_read(hdr->inode)) { in nfs_writeback_check_extend() 1412 fattr->valid &= ~NFS_ATTR_FATTR_SIZE; in nfs_writeback_check_extend() 1415 if (size != fattr->size) in nfs_writeback_check_extend() 1418 nfs_fattr_set_barrier(fattr); in nfs_writeback_check_extend() 1420 fattr->valid |= NFS_ATTR_FATTR_SIZE; in nfs_writeback_check_extend() 1425 struct nfs_fattr *fattr = &hdr->fattr; in nfs_writeback_update_inode() local 1429 nfs_writeback_check_extend(hdr, fattr); in nfs_writeback_update_inode() [all …]
|
D | nfs3client.c | 60 struct nfs_fattr *fattr, in nfs3_clone_server() argument 63 struct nfs_server *server = nfs_clone_server(source, fh, fattr, flavor); in nfs3_clone_server()
|
D | nfs4namespace.c | 395 struct nfs_fh *fh, struct nfs_fattr *fattr) in nfs4_submount() argument 405 client = nfs4_proc_lookup_mountpoint(dir, name, fh, fattr); in nfs4_submount() 410 if (fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) { in nfs4_submount() 417 mnt = nfs_do_submount(dentry, fh, fattr, flavor); in nfs4_submount()
|
D | nfs4trace.h | 840 const struct nfs_fattr *fattr, 844 TP_ARGS(server, fhandle, fattr, error), 856 __entry->valid = fattr->valid; 858 __entry->fileid = (fattr->valid & NFS_ATTR_FATTR_FILEID) ? fattr->fileid : 0; 879 const struct nfs_fattr *fattr, \ 882 TP_ARGS(server, fhandle, fattr, error))
|
/fs/cifs/ |
D | inode.c | 92 cifs_revalidate_cache(struct inode *inode, struct cifs_fattr *fattr) argument 113 if (timespec_equal(&inode->i_mtime, &fattr->cf_mtime) && 114 cifs_i->server_eof == fattr->cf_eof) { 130 cifs_nlink_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr) argument 137 if (fattr->cf_flags & CIFS_FATTR_UNKNOWN_NLINK) { 140 if (fattr->cf_cifsattrs & ATTR_DIRECTORY) 149 set_nlink(inode, fattr->cf_nlink); 154 cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr) argument 159 cifs_revalidate_cache(inode, fattr); 162 inode->i_atime = fattr->cf_atime; [all …]
|
D | readdir.c | 77 struct cifs_fattr *fattr) in cifs_prime_dcache() argument 101 fattr->cf_uniqueid = CIFS_I(inode)->uniqueid; in cifs_prime_dcache() 105 if (CIFS_I(inode)->uniqueid == fattr->cf_uniqueid && in cifs_prime_dcache() 107 (fattr->cf_mode & S_IFMT)) { in cifs_prime_dcache() 108 cifs_fattr_to_inode(inode, fattr); in cifs_prime_dcache() 121 if (fattr->cf_flags & CIFS_FATTR_NEED_REVAL) in cifs_prime_dcache() 128 inode = cifs_iget(sb, fattr); in cifs_prime_dcache() 140 cifs_fill_common_info(struct cifs_fattr *fattr, struct cifs_sb_info *cifs_sb) in cifs_fill_common_info() argument 142 fattr->cf_uid = cifs_sb->mnt_uid; in cifs_fill_common_info() 143 fattr->cf_gid = cifs_sb->mnt_gid; in cifs_fill_common_info() [all …]
|
D | cifsacl.c | 260 struct cifs_fattr *fattr, uint sidtype) in sid_to_id() argument 333 fattr->cf_uid = fuid; in sid_to_id() 335 fattr->cf_gid = fgid; in sid_to_id() 584 struct cifs_fattr *fattr) in parse_dacl() argument 597 fattr->cf_mode |= S_IRWXUGO; in parse_dacl() 614 fattr->cf_mode &= ~(S_IRWXUGO); in parse_dacl() 640 &fattr->cf_mode, in parse_dacl() 645 &fattr->cf_mode, in parse_dacl() 650 &fattr->cf_mode, in parse_dacl() 655 &fattr->cf_mode, in parse_dacl() [all …]
|
D | link.c | 190 couldbe_mf_symlink(const struct cifs_fattr *fattr) in couldbe_mf_symlink() argument 192 if (!S_ISREG(fattr->cf_mode)) in couldbe_mf_symlink() 196 if (fattr->cf_eof != CIFS_MF_SYMLINK_FILE_SIZE) in couldbe_mf_symlink() 272 struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, in check_mf_symlink() argument 280 if (!couldbe_mf_symlink(fattr)) in check_mf_symlink() 311 fattr->cf_eof = link_len; in check_mf_symlink() 312 fattr->cf_mode &= ~S_IFMT; in check_mf_symlink() 313 fattr->cf_mode |= S_IFLNK | S_IRWXU | S_IRWXG | S_IRWXO; in check_mf_symlink() 314 fattr->cf_dtype = DT_LNK; in check_mf_symlink()
|
D | cifsproto.h | 150 void cifs_fill_uniqueid(struct super_block *sb, struct cifs_fattr *fattr); 151 extern void cifs_unix_basic_to_fattr(struct cifs_fattr *fattr, 156 extern void cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr); 158 struct cifs_fattr *fattr); 172 struct cifs_fattr *fattr, struct inode *inode, 489 extern bool couldbe_mf_symlink(const struct cifs_fattr *fattr); 492 struct cifs_fattr *fattr,
|