/fs/ |
D | stat.c | 36 void generic_fillattr(struct inode *inode, struct kstat *stat) in generic_fillattr() argument 38 stat->dev = inode->i_sb->s_dev; in generic_fillattr() 39 stat->ino = inode->i_ino; in generic_fillattr() 40 stat->mode = inode->i_mode; in generic_fillattr() 41 stat->nlink = inode->i_nlink; in generic_fillattr() 42 stat->uid = inode->i_uid; in generic_fillattr() 43 stat->gid = inode->i_gid; in generic_fillattr() 44 stat->rdev = inode->i_rdev; in generic_fillattr() 45 stat->size = i_size_read(inode); in generic_fillattr() 46 stat->atime = inode->i_atime; in generic_fillattr() [all …]
|
/fs/nfs/ |
D | iostat.h | 27 enum nfs_stat_eventcounters stat) in nfs_inc_server_stats() argument 29 this_cpu_inc(server->io_stats->events[stat]); in nfs_inc_server_stats() 33 enum nfs_stat_eventcounters stat) in nfs_inc_stats() argument 35 nfs_inc_server_stats(NFS_SERVER(inode), stat); in nfs_inc_stats() 39 enum nfs_stat_bytecounters stat, in nfs_add_server_stats() argument 42 this_cpu_add(server->io_stats->bytes[stat], addend); in nfs_add_server_stats() 46 enum nfs_stat_bytecounters stat, in nfs_add_stats() argument 49 nfs_add_server_stats(NFS_SERVER(inode), stat, addend); in nfs_add_stats() 54 enum nfs_stat_fscachecounters stat, in nfs_add_fscache_stats() argument 57 this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], addend); in nfs_add_fscache_stats() [all …]
|
/fs/9p/ |
D | vfs_inode_dotl.c | 458 v9fs_vfs_getattr_dotl(const struct path *path, struct kstat *stat, in v9fs_vfs_getattr_dotl() argument 469 generic_fillattr(d_inode(dentry), stat); in v9fs_vfs_getattr_dotl() 485 generic_fillattr(d_inode(dentry), stat); in v9fs_vfs_getattr_dotl() 487 stat->blksize = st->st_blksize; in v9fs_vfs_getattr_dotl() 616 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode, in v9fs_stat2inode_dotl() argument 622 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { in v9fs_stat2inode_dotl() 623 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl() 624 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl() 625 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl() 626 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl() [all …]
|
D | vfs_inode.c | 84 struct p9_wstat *stat) in p9mode2perm() argument 87 int mode = stat->mode; in p9mode2perm() 111 struct p9_wstat *stat, dev_t *rdev) in p9mode2unixmode() argument 114 u32 mode = stat->mode; in p9mode2unixmode() 117 res = p9mode2perm(v9ses, stat); in p9mode2unixmode() 134 strlcpy(ext, stat->extension, sizeof(ext)); in p9mode2unixmode() 145 type, stat->extension); in p9mode2unixmode() 998 v9fs_vfs_getattr(const struct path *path, struct kstat *stat, in v9fs_vfs_getattr() argument 1009 generic_fillattr(d_inode(dentry), stat); in v9fs_vfs_getattr() 1021 generic_fillattr(d_inode(dentry), stat); in v9fs_vfs_getattr() [all …]
|
D | v9fs_vfs.h | 52 void v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode, 54 void v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode, 58 void v9fs_inode2stat(struct inode *inode, struct p9_wstat *stat);
|
/fs/nfsd/ |
D | nfsxdr.c | 130 struct kstat *stat) in encode_fattr() argument 138 type = (stat->mode & S_IFMT); in encode_fattr() 141 *p++ = htonl((u32) stat->mode); in encode_fattr() 142 *p++ = htonl((u32) stat->nlink); in encode_fattr() 143 *p++ = htonl((u32) from_kuid_munged(userns, stat->uid)); in encode_fattr() 144 *p++ = htonl((u32) from_kgid_munged(userns, stat->gid)); in encode_fattr() 146 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) { in encode_fattr() 149 *p++ = htonl((u32) stat->size); in encode_fattr() 151 *p++ = htonl((u32) stat->blksize); in encode_fattr() 153 *p++ = htonl(new_encode_dev(stat->rdev)); in encode_fattr() [all …]
|
D | nfs3xdr.c | 167 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 & S_IALLUGO)); in encode_fattr3() 172 *p++ = htonl((u32) stat->nlink); in encode_fattr3() 173 *p++ = htonl((u32) from_kuid_munged(userns, stat->uid)); in encode_fattr3() 174 *p++ = htonl((u32) from_kgid_munged(userns, 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 | 92 struct kstat stat; member 98 struct kstat stat; member 110 struct kstat stat; member 176 …2 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat);
|
D | nfs2acl.c | 53 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl() 127 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_setacl() 158 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_getattr() 180 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_access() 291 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_getaclres() 325 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_attrstatres() 339 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_accessres()
|
/fs/overlayfs/ |
D | copy_up.c | 232 static int ovl_set_size(struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() argument 236 .ia_size = stat->size, in ovl_set_size() 242 static int ovl_set_timestamps(struct dentry *upperdentry, struct kstat *stat) in ovl_set_timestamps() argument 247 .ia_atime = stat->atime, in ovl_set_timestamps() 248 .ia_mtime = stat->mtime, in ovl_set_timestamps() 254 int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat) in ovl_set_attr() argument 258 if (!S_ISLNK(stat->mode)) { in ovl_set_attr() 261 .ia_mode = stat->mode, in ovl_set_attr() 268 .ia_uid = stat->uid, in ovl_set_attr() 269 .ia_gid = stat->gid, in ovl_set_attr() [all …]
|
D | inode.c | 97 static int ovl_map_dev_ino(struct dentry *dentry, struct kstat *stat, int fsid) in ovl_map_dev_ino() argument 109 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 121 if (likely(!(stat->ino >> xinoshift))) { in ovl_map_dev_ino() 122 stat->ino |= ((u64)fsid) << (xinoshift + 1); in ovl_map_dev_ino() 123 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 127 dentry, stat->ino, xinobits); in ovl_map_dev_ino() 142 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 143 stat->ino = dentry->d_inode->i_ino; in ovl_map_dev_ino() 151 stat->dev = OVL_FS(dentry->d_sb)->fs[fsid].pseudo_dev; in ovl_map_dev_ino() 157 int ovl_getattr(const struct path *path, struct kstat *stat, in ovl_getattr() argument [all …]
|
/fs/xfs/libxfs/ |
D | xfs_btree.c | 1531 int *stat) /* success/failure */ in xfs_btree_increment() argument 1614 *stat = 1; in xfs_btree_increment() 1618 *stat = 0; in xfs_btree_increment() 1633 int *stat) /* success/failure */ in xfs_btree_decrement() argument 1706 *stat = 1; in xfs_btree_decrement() 1710 *stat = 0; in xfs_btree_decrement() 1810 int *stat) /* success/failure */ in xfs_btree_lookup() argument 1871 *stat = 0; in xfs_btree_lookup() 1945 *stat = 1; in xfs_btree_lookup() 1954 *stat = 0; in xfs_btree_lookup() [all …]
|
D | xfs_refcount.h | 10 xfs_agblock_t bno, int *stat); 12 xfs_agblock_t bno, int *stat); 14 xfs_agblock_t bno, int *stat); 16 struct xfs_refcount_irec *irec, int *stat); 77 struct xfs_refcount_irec *irec, int *stat);
|
D | xfs_rmap.h | 124 unsigned int flags, int *stat); 127 unsigned int flags, int *stat); 132 int *stat); 186 struct xfs_rmap_irec *irec, int *stat); 189 struct xfs_rmap_irec *irec, int *stat);
|
D | xfs_ialloc.h | 121 xfs_lookup_t dir, int *stat); 127 xfs_inobt_rec_incore_t *rec, int *stat); 151 int *stat);
|
D | xfs_rtbitmap.c | 771 int *stat) /* out: 1 for matches, 0 for not */ in xfs_rtcheck_range() argument 830 *stat = 0; in xfs_rtcheck_range() 876 *stat = 0; in xfs_rtcheck_range() 921 *stat = 0; in xfs_rtcheck_range() 931 *stat = 1; in xfs_rtcheck_range() 947 int stat; in xfs_rtcheck_alloc_range() local 950 error = xfs_rtcheck_range(mp, tp, bno, len, 0, &new, &stat); in xfs_rtcheck_alloc_range() 953 ASSERT(stat); in xfs_rtcheck_alloc_range()
|
D | xfs_ialloc_btree.c | 94 int *stat, in __xfs_inobt_alloc_block() argument 117 *stat = 0; in __xfs_inobt_alloc_block() 123 *stat = 1; in __xfs_inobt_alloc_block() 133 int *stat) in xfs_inobt_alloc_block() argument 135 return __xfs_inobt_alloc_block(cur, start, new, stat, XFS_AG_RESV_NONE); in xfs_inobt_alloc_block() 143 int *stat) in xfs_finobt_alloc_block() argument 146 return xfs_inobt_alloc_block(cur, start, new, stat); in xfs_finobt_alloc_block() 147 return __xfs_inobt_alloc_block(cur, start, new, stat, in xfs_finobt_alloc_block()
|
/fs/vboxsf/ |
D | super.c | 284 static int vboxsf_statfs(struct dentry *dentry, struct kstatfs *stat) in vboxsf_statfs() argument 299 stat->f_type = VBOXSF_SUPER_MAGIC; in vboxsf_statfs() 300 stat->f_bsize = shfl_volinfo.bytes_per_allocation_unit; in vboxsf_statfs() 304 stat->f_blocks = shfl_volinfo.total_allocation_bytes; in vboxsf_statfs() 308 stat->f_bfree = shfl_volinfo.available_allocation_bytes; in vboxsf_statfs() 309 stat->f_bavail = shfl_volinfo.available_allocation_bytes; in vboxsf_statfs() 311 stat->f_files = 1000; in vboxsf_statfs() 316 stat->f_ffree = 1000000; in vboxsf_statfs() 317 stat->f_fsid.val[0] = 0; in vboxsf_statfs() 318 stat->f_fsid.val[1] = 0; in vboxsf_statfs() [all …]
|
/fs/xfs/ |
D | xfs_iops.c | 535 struct kstat *stat, in xfs_vn_getattr() argument 548 stat->size = XFS_ISIZE(ip); in xfs_vn_getattr() 549 stat->dev = inode->i_sb->s_dev; in xfs_vn_getattr() 550 stat->mode = inode->i_mode; in xfs_vn_getattr() 551 stat->nlink = inode->i_nlink; in xfs_vn_getattr() 552 stat->uid = inode->i_uid; in xfs_vn_getattr() 553 stat->gid = inode->i_gid; in xfs_vn_getattr() 554 stat->ino = ip->i_ino; in xfs_vn_getattr() 555 stat->atime = inode->i_atime; in xfs_vn_getattr() 556 stat->mtime = inode->i_mtime; in xfs_vn_getattr() [all …]
|
/fs/fscache/ |
D | internal.h | 283 static inline void fscache_stat(atomic_t *stat) in fscache_stat() argument 285 atomic_inc(stat); in fscache_stat() 288 static inline void fscache_stat_d(atomic_t *stat) in fscache_stat_d() argument 290 atomic_dec(stat); in fscache_stat_d() 293 #define __fscache_stat(stat) (stat) argument 298 #define __fscache_stat(stat) (NULL) argument 299 #define fscache_stat(stat) do {} while (0) argument 300 #define fscache_stat_d(stat) do {} while (0) argument
|
/fs/fuse/ |
D | dir.c | 1050 struct kstat *stat) in fuse_fillattr() argument 1064 stat->dev = inode->i_sb->s_dev; in fuse_fillattr() 1065 stat->ino = attr->ino; in fuse_fillattr() 1066 stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); in fuse_fillattr() 1067 stat->nlink = attr->nlink; in fuse_fillattr() 1068 stat->uid = make_kuid(fc->user_ns, attr->uid); in fuse_fillattr() 1069 stat->gid = make_kgid(fc->user_ns, attr->gid); in fuse_fillattr() 1070 stat->rdev = inode->i_rdev; in fuse_fillattr() 1071 stat->atime.tv_sec = attr->atime; in fuse_fillattr() 1072 stat->atime.tv_nsec = attr->atimensec; in fuse_fillattr() [all …]
|
/fs/exfat/ |
D | file.c | 269 int exfat_getattr(const struct path *path, struct kstat *stat, in exfat_getattr() argument 275 generic_fillattr(inode, stat); in exfat_getattr() 276 exfat_truncate_atime(&stat->atime); in exfat_getattr() 277 stat->result_mask |= STATX_BTIME; in exfat_getattr() 278 stat->btime.tv_sec = ei->i_crtime.tv_sec; in exfat_getattr() 279 stat->btime.tv_nsec = ei->i_crtime.tv_nsec; in exfat_getattr() 280 stat->blksize = EXFAT_SB(inode->i_sb)->cluster_size; in exfat_getattr()
|
/fs/ext4/ |
D | symlink.c | 56 struct kstat *stat, u32 request_mask, in ext4_encrypted_symlink_getattr() argument 59 ext4_getattr(path, stat, request_mask, query_flags); in ext4_encrypted_symlink_getattr() 61 return fscrypt_symlink_getattr(path, stat); in ext4_encrypted_symlink_getattr()
|
/fs/btrfs/ |
D | scrub.c | 181 struct btrfs_scrub_progress stat; member 850 ++sctx->stat.super_errors; in scrub_handle_errored_block() 884 sctx->stat.malloc_errors++; in scrub_handle_errored_block() 885 sctx->stat.read_errors++; in scrub_handle_errored_block() 886 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block() 924 sctx->stat.malloc_errors++; in scrub_handle_errored_block() 925 sctx->stat.read_errors++; in scrub_handle_errored_block() 926 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block() 936 sctx->stat.read_errors++; in scrub_handle_errored_block() 937 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block() [all …]
|
/fs/udf/ |
D | symlink.c | 155 static int udf_symlink_getattr(const struct path *path, struct kstat *stat, in udf_symlink_getattr() argument 162 generic_fillattr(inode, stat); in udf_symlink_getattr() 175 stat->size = strlen(page_address(page)); in udf_symlink_getattr()
|