/fs/ |
D | stat.c | 21 void generic_fillattr(struct inode *inode, struct kstat *stat) in generic_fillattr() argument 23 stat->dev = inode->i_sb->s_dev; in generic_fillattr() 24 stat->ino = inode->i_ino; in generic_fillattr() 25 stat->mode = inode->i_mode; in generic_fillattr() 26 stat->nlink = inode->i_nlink; in generic_fillattr() 27 stat->uid = inode->i_uid; in generic_fillattr() 28 stat->gid = inode->i_gid; in generic_fillattr() 29 stat->rdev = inode->i_rdev; in generic_fillattr() 30 stat->size = i_size_read(inode); in generic_fillattr() 31 stat->atime = inode->i_atime; in generic_fillattr() [all …]
|
D | compat.c | 129 static int cp_compat_stat(struct kstat *stat, struct compat_stat __user *ubuf) in cp_compat_stat() argument 133 if (!old_valid_dev(stat->dev) || !old_valid_dev(stat->rdev)) in cp_compat_stat() 137 tmp.st_dev = old_encode_dev(stat->dev); in cp_compat_stat() 138 tmp.st_ino = stat->ino; in cp_compat_stat() 139 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) in cp_compat_stat() 141 tmp.st_mode = stat->mode; in cp_compat_stat() 142 tmp.st_nlink = stat->nlink; in cp_compat_stat() 143 if (tmp.st_nlink != stat->nlink) in cp_compat_stat() 145 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat() 146 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat() [all …]
|
/fs/nfs/ |
D | iostat.h | 26 enum nfs_stat_eventcounters stat) in nfs_inc_server_stats() argument 28 this_cpu_inc(server->io_stats->events[stat]); in nfs_inc_server_stats() 32 enum nfs_stat_eventcounters stat) in nfs_inc_stats() argument 34 nfs_inc_server_stats(NFS_SERVER(inode), stat); in nfs_inc_stats() 38 enum nfs_stat_bytecounters stat, in nfs_add_server_stats() argument 41 this_cpu_add(server->io_stats->bytes[stat], addend); in nfs_add_server_stats() 45 enum nfs_stat_bytecounters stat, in nfs_add_stats() argument 48 nfs_add_server_stats(NFS_SERVER(inode), stat, addend); in nfs_add_stats() 53 enum nfs_stat_fscachecounters stat, in nfs_add_fscache_stats() argument 56 this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], addend); in nfs_add_fscache_stats()
|
D | proc.c | 538 struct nfs_fsstat *stat) in nfs_proc_statfs() argument 549 nfs_fattr_init(stat->fattr); in nfs_proc_statfs() 554 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs() 555 stat->fbytes = (u64)fsinfo.bfree * fsinfo.bsize; in nfs_proc_statfs() 556 stat->abytes = (u64)fsinfo.bavail * fsinfo.bsize; in nfs_proc_statfs() 557 stat->tfiles = 0; in nfs_proc_statfs() 558 stat->ffiles = 0; in nfs_proc_statfs() 559 stat->afiles = 0; in nfs_proc_statfs()
|
/fs/9p/ |
D | vfs_inode_dotl.c | 484 struct kstat *stat) in v9fs_vfs_getattr_dotl() argument 495 generic_fillattr(dentry->d_inode, stat); in v9fs_vfs_getattr_dotl() 511 generic_fillattr(dentry->d_inode, stat); in v9fs_vfs_getattr_dotl() 513 stat->blksize = st->st_blksize; in v9fs_vfs_getattr_dotl() 629 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode) in v9fs_stat2inode_dotl() argument 634 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { in v9fs_stat2inode_dotl() 635 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl() 636 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl() 637 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl() 638 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl() [all …]
|
D | vfs_inode.c | 99 struct p9_wstat *stat) in p9mode2perm() argument 102 int mode = stat->mode; in p9mode2perm() 126 struct p9_wstat *stat, dev_t *rdev) in p9mode2unixmode() argument 129 u32 mode = stat->mode; in p9mode2unixmode() 132 res = p9mode2perm(v9ses, stat); in p9mode2unixmode() 149 strncpy(ext, stat->extension, sizeof(ext)); in p9mode2unixmode() 160 type, stat->extension); in p9mode2unixmode() 1055 struct kstat *stat) in v9fs_vfs_getattr() argument 1066 generic_fillattr(dentry->d_inode, stat); in v9fs_vfs_getattr() 1078 generic_fillattr(dentry->d_inode, stat); in v9fs_vfs_getattr() [all …]
|
/fs/nfsd/ |
D | nfsxdr.c | 145 struct kstat *stat) in encode_fattr() argument 152 type = (stat->mode & S_IFMT); in encode_fattr() 155 *p++ = htonl((u32) stat->mode); in encode_fattr() 156 *p++ = htonl((u32) stat->nlink); in encode_fattr() 157 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid)); in encode_fattr() 158 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid)); in encode_fattr() 160 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) { in encode_fattr() 163 *p++ = htonl((u32) stat->size); in encode_fattr() 165 *p++ = htonl((u32) stat->blksize); in encode_fattr() 167 *p++ = htonl(new_encode_dev(stat->rdev)); in encode_fattr() [all …]
|
D | nfs3xdr.c | 168 struct kstat *stat) in encode_fattr3() argument 170 *p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); in encode_fattr3() 171 *p++ = htonl((u32) stat->mode); in encode_fattr3() 172 *p++ = htonl((u32) stat->nlink); in encode_fattr3() 173 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid)); in encode_fattr3() 174 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid)); in encode_fattr3() 175 if (S_ISLNK(stat->mode) && stat->size > NFS3_MAXPATHLEN) { in encode_fattr3() 178 p = xdr_encode_hyper(p, (u64) stat->size); in encode_fattr3() 180 p = xdr_encode_hyper(p, ((u64)stat->blocks) << 9); in encode_fattr3() 181 *p++ = htonl((u32) MAJOR(stat->rdev)); in encode_fattr3() [all …]
|
D | xdr.h | 85 struct kstat stat; member 90 struct kstat stat; member 100 struct kstat stat; member 170 …2 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat);
|
D | nfs2acl.c | 48 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl() 123 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_setacl() 146 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_getattr() 167 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_access() 261 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_getaclres() 292 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_attrstatres() 300 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_accessres()
|
D | nfs4xdr.c | 1660 static void write_change(__be32 **p, struct kstat *stat, struct inode *inode) in write_change() argument 1665 write32(p, stat->ctime.tv_sec); in write_change() 1666 write32(p, stat->ctime.tv_nsec); in write_change() 1973 static int get_parent_attributes(struct svc_export *exp, struct kstat *stat) in get_parent_attributes() argument 1983 err = vfs_getattr(&path, stat); in get_parent_attributes() 2002 struct kstat stat; in nfsd4_encode_fattr() local 2035 err = vfs_getattr(&path, &stat); in nfsd4_encode_fattr() 2114 dummy = nfs4_file_type(stat.mode); in nfsd4_encode_fattr() 2130 write_change(&p, &stat, dentry->d_inode); in nfsd4_encode_fattr() 2135 WRITE64(stat.size); in nfsd4_encode_fattr() [all …]
|
/fs/xfs/ |
D | xfs_btree.h | 140 #define __XFS_BTREE_STATS_INC(type, stat) \ argument 141 XFS_STATS_INC(xs_ ## type ## _2_ ## stat) 142 #define XFS_BTREE_STATS_INC(cur, stat) \ argument 145 case XFS_BTNUM_BNO: __XFS_BTREE_STATS_INC(abtb, stat); break; \ 146 case XFS_BTNUM_CNT: __XFS_BTREE_STATS_INC(abtc, stat); break; \ 147 case XFS_BTNUM_BMAP: __XFS_BTREE_STATS_INC(bmbt, stat); break; \ 148 case XFS_BTNUM_INO: __XFS_BTREE_STATS_INC(ibt, stat); break; \ 153 #define __XFS_BTREE_STATS_ADD(type, stat, val) \ argument 154 XFS_STATS_ADD(xs_ ## type ## _2_ ## stat, val) 155 #define XFS_BTREE_STATS_ADD(cur, stat, val) \ argument [all …]
|
D | xfs_btree.c | 1428 int *stat) /* success/failure */ in xfs_btree_increment() argument 1515 *stat = 1; in xfs_btree_increment() 1520 *stat = 0; in xfs_btree_increment() 1536 int *stat) /* success/failure */ in xfs_btree_decrement() argument 1613 *stat = 1; in xfs_btree_decrement() 1618 *stat = 0; in xfs_btree_decrement() 1693 int *stat) /* success/failure */ in xfs_btree_lookup() argument 1748 *stat = 0; in xfs_btree_lookup() 1823 *stat = 1; in xfs_btree_lookup() 1832 *stat = 0; in xfs_btree_lookup() [all …]
|
D | xfs_iops.c | 408 struct kstat *stat) in xfs_vn_getattr() argument 419 stat->size = XFS_ISIZE(ip); in xfs_vn_getattr() 420 stat->dev = inode->i_sb->s_dev; in xfs_vn_getattr() 421 stat->mode = ip->i_d.di_mode; in xfs_vn_getattr() 422 stat->nlink = ip->i_d.di_nlink; in xfs_vn_getattr() 423 stat->uid = ip->i_d.di_uid; in xfs_vn_getattr() 424 stat->gid = ip->i_d.di_gid; in xfs_vn_getattr() 425 stat->ino = ip->i_ino; in xfs_vn_getattr() 426 stat->atime = inode->i_atime; in xfs_vn_getattr() 427 stat->mtime = inode->i_mtime; in xfs_vn_getattr() [all …]
|
D | xfs_itable.h | 31 int *stat); 74 int *stat); 83 int *stat);
|
D | xfs_alloc.h | 218 int *stat); /* success/failure */ 225 int *stat); /* success/failure */ 232 int *stat); /* output: success/failure */
|
D | xfs_rtalloc.c | 216 int stat; /* status from internal calls */ in xfs_rtallocate_extent_block() local 230 error = xfs_rtcheck_range(mp, tp, i, maxlen, 1, &next, &stat); in xfs_rtallocate_extent_block() 234 if (stat) { in xfs_rtallocate_extent_block() 814 int *stat) /* out: any good extents here? */ in xfs_rtany_summary() argument 835 *stat = 1; in xfs_rtany_summary() 842 *stat = 0; in xfs_rtany_summary() 891 int *stat) /* out: 1 for allocated, 0 for not */ in xfs_rtcheck_alloc_range() argument 895 return xfs_rtcheck_range(mp, tp, bno, len, 0, &new, stat); in xfs_rtcheck_alloc_range() 911 int *stat) /* out: 1 for matches, 0 for not */ in xfs_rtcheck_range() argument 970 *stat = 0; in xfs_rtcheck_range() [all …]
|
D | xfs_ialloc.h | 145 xfs_lookup_t dir, int *stat); 151 xfs_inobt_rec_incore_t *rec, int *stat);
|
D | xfs_itable.c | 61 int *stat) /* BULKSTAT_RV_... */ in xfs_bulkstat_one_int() argument 68 *stat = BULKSTAT_RV_NOTHING; in xfs_bulkstat_one_int() 81 *stat = BULKSTAT_RV_NOTHING; in xfs_bulkstat_one_int() 142 *stat = BULKSTAT_RV_DIDONE; in xfs_bulkstat_one_int() 173 int *stat) /* BULKSTAT_RV_... */ in xfs_bulkstat_one() argument 176 xfs_bulkstat_one_fmt, ubused, stat); in xfs_bulkstat_one()
|
/fs/fscache/ |
D | internal.h | 265 static inline void fscache_stat(atomic_t *stat) in fscache_stat() argument 267 atomic_inc(stat); in fscache_stat() 270 static inline void fscache_stat_d(atomic_t *stat) in fscache_stat_d() argument 272 atomic_dec(stat); in fscache_stat_d() 275 #define __fscache_stat(stat) (stat) argument 280 #define __fscache_stat(stat) (NULL) argument 281 #define fscache_stat(stat) do {} while (0) argument 282 #define fscache_stat_d(stat) do {} while (0) argument
|
/fs/sdcardfs/ |
D | inode.c | 830 struct inode *inode, struct kstat *stat) in sdcardfs_fillattr() argument 838 stat->dev = inode->i_sb->s_dev; in sdcardfs_fillattr() 839 stat->ino = inode->i_ino; in sdcardfs_fillattr() 840 stat->mode = (inode->i_mode & S_IFMT) | get_mode(mnt, info, top); in sdcardfs_fillattr() 841 stat->nlink = inode->i_nlink; in sdcardfs_fillattr() 842 stat->uid = make_kuid(&init_user_ns, top->d_uid); in sdcardfs_fillattr() 843 stat->gid = make_kgid(&init_user_ns, get_gid(mnt, top)); in sdcardfs_fillattr() 844 stat->rdev = inode->i_rdev; in sdcardfs_fillattr() 845 stat->size = i_size_read(inode); in sdcardfs_fillattr() 846 stat->atime = inode->i_atime; in sdcardfs_fillattr() [all …]
|
/fs/fuse/ |
D | dir.c | 896 struct kstat *stat) in fuse_fillattr() argument 900 stat->dev = inode->i_sb->s_dev; in fuse_fillattr() 901 stat->ino = attr->ino; in fuse_fillattr() 902 stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); in fuse_fillattr() 903 stat->nlink = attr->nlink; in fuse_fillattr() 904 stat->uid = make_kuid(&init_user_ns, attr->uid); in fuse_fillattr() 905 stat->gid = make_kgid(&init_user_ns, attr->gid); in fuse_fillattr() 906 stat->rdev = inode->i_rdev; in fuse_fillattr() 907 stat->atime.tv_sec = attr->atime; in fuse_fillattr() 908 stat->atime.tv_nsec = attr->atimensec; in fuse_fillattr() [all …]
|
/fs/btrfs/ |
D | scrub.c | 148 struct btrfs_scrub_progress stat; member 711 ++sctx->stat.malloc_errors; in scrub_fixup_nodatasum() 742 ++sctx->stat.corrected_errors; in scrub_fixup_nodatasum() 750 ++sctx->stat.uncorrectable_errors; in scrub_fixup_nodatasum() 805 ++sctx->stat.super_errors; in scrub_handle_errored_block() 859 sctx->stat.malloc_errors++; in scrub_handle_errored_block() 860 sctx->stat.read_errors++; in scrub_handle_errored_block() 861 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block() 872 sctx->stat.read_errors++; in scrub_handle_errored_block() 873 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block() [all …]
|
/fs/proc/ |
D | proc_net.c | 141 struct kstat *stat) in proc_tgid_net_getattr() argument 148 generic_fillattr(inode, stat); in proc_tgid_net_getattr() 151 stat->nlink = net->proc_net->nlink; in proc_tgid_net_getattr()
|
D | root.c | 191 static int proc_root_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat in proc_root_getattr() argument 194 generic_fillattr(dentry->d_inode, stat); in proc_root_getattr() 195 stat->nlink = proc_root.nlink + nr_processes(); in proc_root_getattr()
|