/fs/ |
D | stat.c | 44 struct kstat *stat) in generic_fillattr() argument 46 stat->dev = inode->i_sb->s_dev; in generic_fillattr() 47 stat->ino = inode->i_ino; in generic_fillattr() 48 stat->mode = inode->i_mode; in generic_fillattr() 49 stat->nlink = inode->i_nlink; in generic_fillattr() 50 stat->uid = i_uid_into_mnt(mnt_userns, inode); in generic_fillattr() 51 stat->gid = i_gid_into_mnt(mnt_userns, inode); in generic_fillattr() 52 stat->rdev = inode->i_rdev; in generic_fillattr() 53 stat->size = i_size_read(inode); in generic_fillattr() 54 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 | 470 const struct path *path, struct kstat *stat, in v9fs_vfs_getattr_dotl() argument 481 generic_fillattr(&init_user_ns, d_inode(dentry), stat); in v9fs_vfs_getattr_dotl() 498 generic_fillattr(&init_user_ns, d_inode(dentry), stat); in v9fs_vfs_getattr_dotl() 500 stat->blksize = st->st_blksize; in v9fs_vfs_getattr_dotl() 642 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode, in v9fs_stat2inode_dotl() argument 648 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { in v9fs_stat2inode_dotl() 649 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl() 650 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl() 651 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl() 652 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl() [all …]
|
D | vfs_inode.c | 85 struct p9_wstat *stat) in p9mode2perm() argument 88 int mode = stat->mode; in p9mode2perm() 112 struct p9_wstat *stat, dev_t *rdev) in p9mode2unixmode() argument 115 u32 mode = stat->mode; in p9mode2unixmode() 118 res = p9mode2perm(v9ses, stat); in p9mode2unixmode() 135 strlcpy(ext, stat->extension, sizeof(ext)); in p9mode2unixmode() 146 type, stat->extension); in p9mode2unixmode() 1030 struct kstat *stat, u32 request_mask, unsigned int flags) in v9fs_vfs_getattr() argument 1040 generic_fillattr(&init_user_ns, d_inode(dentry), stat); in v9fs_vfs_getattr() 1053 generic_fillattr(&init_user_ns, d_inode(dentry), stat); in v9fs_vfs_getattr() [all …]
|
D | v9fs_vfs.h | 53 void v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode, 55 void v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode, 59 void v9fs_inode2stat(struct inode *inode, struct p9_wstat *stat);
|
/fs/overlayfs/ |
D | copy_up.c | 295 static int ovl_set_size(struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() argument 299 .ia_size = stat->size, in ovl_set_size() 305 static int ovl_set_timestamps(struct dentry *upperdentry, struct kstat *stat) in ovl_set_timestamps() argument 310 .ia_atime = stat->atime, in ovl_set_timestamps() 311 .ia_mtime = stat->mtime, in ovl_set_timestamps() 317 int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat) in ovl_set_attr() argument 321 if (!S_ISLNK(stat->mode)) { in ovl_set_attr() 324 .ia_mode = stat->mode, in ovl_set_attr() 331 .ia_uid = stat->uid, in ovl_set_attr() 332 .ia_gid = stat->gid, in ovl_set_attr() [all …]
|
D | inode.c | 95 static void ovl_map_dev_ino(struct dentry *dentry, struct kstat *stat, int fsid) in ovl_map_dev_ino() argument 107 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 119 if (likely(!(stat->ino >> xinoshift))) { in ovl_map_dev_ino() 120 stat->ino |= ((u64)fsid) << (xinoshift + 1); in ovl_map_dev_ino() 121 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 125 dentry, stat->ino, xinobits); in ovl_map_dev_ino() 140 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 141 stat->ino = dentry->d_inode->i_ino; in ovl_map_dev_ino() 149 stat->dev = OVL_FS(dentry->d_sb)->fs[fsid].pseudo_dev; in ovl_map_dev_ino() 154 struct kstat *stat, u32 request_mask, unsigned int flags) in ovl_getattr() argument [all …]
|
/fs/nfsd/ |
D | nfsxdr.c | 215 const struct svc_fh *fhp, const struct kstat *stat) in svcxdr_encode_fattr() argument 219 int type = stat->mode & S_IFMT; in svcxdr_encode_fattr() 229 *p++ = cpu_to_be32((u32)stat->mode); in svcxdr_encode_fattr() 230 *p++ = cpu_to_be32((u32)stat->nlink); in svcxdr_encode_fattr() 231 *p++ = cpu_to_be32((u32)from_kuid_munged(userns, stat->uid)); in svcxdr_encode_fattr() 232 *p++ = cpu_to_be32((u32)from_kgid_munged(userns, stat->gid)); in svcxdr_encode_fattr() 234 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) in svcxdr_encode_fattr() 237 *p++ = cpu_to_be32((u32) stat->size); in svcxdr_encode_fattr() 238 *p++ = cpu_to_be32((u32) stat->blksize); in svcxdr_encode_fattr() 240 *p++ = cpu_to_be32(new_encode_dev(stat->rdev)); in svcxdr_encode_fattr() [all …]
|
D | nfs3xdr.c | 339 const struct svc_fh *fhp, const struct kstat *stat) in svcxdr_encode_fattr3() argument 349 *p++ = cpu_to_be32(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); in svcxdr_encode_fattr3() 350 *p++ = cpu_to_be32((u32)(stat->mode & S_IALLUGO)); in svcxdr_encode_fattr3() 351 *p++ = cpu_to_be32((u32)stat->nlink); in svcxdr_encode_fattr3() 352 *p++ = cpu_to_be32((u32)from_kuid_munged(userns, stat->uid)); in svcxdr_encode_fattr3() 353 *p++ = cpu_to_be32((u32)from_kgid_munged(userns, stat->gid)); in svcxdr_encode_fattr3() 354 if (S_ISLNK(stat->mode) && stat->size > NFS3_MAXPATHLEN) in svcxdr_encode_fattr3() 357 p = xdr_encode_hyper(p, (u64)stat->size); in svcxdr_encode_fattr3() 360 p = xdr_encode_hyper(p, ((u64)stat->blocks) << 9); in svcxdr_encode_fattr3() 363 *p++ = cpu_to_be32((u32)MAJOR(stat->rdev)); in svcxdr_encode_fattr3() [all …]
|
D | xdr.h | 85 struct kstat stat; member 91 struct kstat stat; member 104 struct kstat stat; member 174 const struct svc_fh *fhp, const struct kstat *stat);
|
D | nfs2acl.c | 53 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl() 129 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_setacl() 160 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_getattr() 182 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_access() 257 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfsaclsvc_encode_getaclres() 282 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfsaclsvc_encode_accessres()
|
/fs/xfs/libxfs/ |
D | xfs_btree.c | 1606 int *stat) /* success/failure */ in xfs_btree_increment() argument 1689 *stat = 1; in xfs_btree_increment() 1693 *stat = 0; in xfs_btree_increment() 1708 int *stat) /* success/failure */ in xfs_btree_decrement() argument 1781 *stat = 1; in xfs_btree_decrement() 1785 *stat = 0; in xfs_btree_decrement() 1885 int *stat) /* success/failure */ in xfs_btree_lookup() argument 1946 *stat = 0; in xfs_btree_lookup() 2020 *stat = 1; in xfs_btree_lookup() 2029 *stat = 0; in xfs_btree_lookup() [all …]
|
D | xfs_refcount.h | 17 xfs_agblock_t bno, int *stat); 19 xfs_agblock_t bno, int *stat); 21 xfs_agblock_t bno, int *stat); 23 struct xfs_refcount_irec *irec, int *stat); 84 struct xfs_refcount_irec *irec, int *stat);
|
D | xfs_rmap.h | 126 unsigned int flags, int *stat); 129 unsigned int flags, int *stat); 134 int *stat); 189 struct xfs_rmap_irec *irec, int *stat); 192 struct xfs_rmap_irec *irec, int *stat);
|
D | xfs_alloc.c | 147 int *stat) /* success/failure */ in xfs_alloc_lookup_eq() argument 153 error = xfs_btree_lookup(cur, XFS_LOOKUP_EQ, stat); in xfs_alloc_lookup_eq() 154 cur->bc_ag.abt.active = (*stat == 1); in xfs_alloc_lookup_eq() 167 int *stat) /* success/failure */ in xfs_alloc_lookup_ge() argument 173 error = xfs_btree_lookup(cur, XFS_LOOKUP_GE, stat); in xfs_alloc_lookup_ge() 174 cur->bc_ag.abt.active = (*stat == 1); in xfs_alloc_lookup_ge() 187 int *stat) /* success/failure */ in xfs_alloc_lookup_le() argument 192 error = xfs_btree_lookup(cur, XFS_LOOKUP_LE, stat); in xfs_alloc_lookup_le() 193 cur->bc_ag.abt.active = (*stat == 1); in xfs_alloc_lookup_le() 230 int *stat) /* output: success/failure */ in xfs_alloc_get_rec() argument [all …]
|
D | xfs_ialloc.h | 89 xfs_lookup_t dir, int *stat); 95 xfs_inobt_rec_incore_t *rec, int *stat); 120 int *stat);
|
/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 | 554 struct kstat *stat, in xfs_vn_getattr() argument 567 stat->size = XFS_ISIZE(ip); in xfs_vn_getattr() 568 stat->dev = inode->i_sb->s_dev; in xfs_vn_getattr() 569 stat->mode = inode->i_mode; in xfs_vn_getattr() 570 stat->nlink = inode->i_nlink; in xfs_vn_getattr() 571 stat->uid = i_uid_into_mnt(mnt_userns, inode); in xfs_vn_getattr() 572 stat->gid = i_gid_into_mnt(mnt_userns, inode); in xfs_vn_getattr() 573 stat->ino = ip->i_ino; in xfs_vn_getattr() 574 stat->atime = inode->i_atime; in xfs_vn_getattr() 575 stat->mtime = inode->i_mtime; in xfs_vn_getattr() [all …]
|
/fs/fscache/ |
D | internal.h | 260 static inline void fscache_stat(atomic_t *stat) in fscache_stat() argument 262 atomic_inc(stat); in fscache_stat() 265 static inline void fscache_stat_d(atomic_t *stat) in fscache_stat_d() argument 267 atomic_dec(stat); in fscache_stat_d() 270 #define __fscache_stat(stat) (stat) argument 275 #define __fscache_stat(stat) (NULL) argument 276 #define fscache_stat(stat) do {} while (0) argument 277 #define fscache_stat_d(stat) do {} while (0) argument
|
/fs/netfs/ |
D | internal.h | 43 static inline void netfs_stat(atomic_t *stat) in netfs_stat() argument 45 atomic_inc(stat); in netfs_stat() 48 static inline void netfs_stat_d(atomic_t *stat) in netfs_stat_d() argument 50 atomic_dec(stat); in netfs_stat_d()
|
/fs/fuse/ |
D | dir.c | 1370 struct kstat *stat) in fuse_fillattr() argument 1384 stat->dev = inode->i_sb->s_dev; in fuse_fillattr() 1385 stat->ino = attr->ino; in fuse_fillattr() 1386 stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); in fuse_fillattr() 1387 stat->nlink = attr->nlink; in fuse_fillattr() 1388 stat->uid = make_kuid(fc->user_ns, attr->uid); in fuse_fillattr() 1389 stat->gid = make_kgid(fc->user_ns, attr->gid); in fuse_fillattr() 1390 stat->rdev = inode->i_rdev; in fuse_fillattr() 1391 stat->atime.tv_sec = attr->atime; in fuse_fillattr() 1392 stat->atime.tv_nsec = attr->atimensec; in fuse_fillattr() [all …]
|
D | backing.c | 27 struct kstat *stat, struct fuse_attr *attr); 1119 struct kstat stat; in fuse_lookup_backing() local 1144 err = vfs_getattr(&fuse_entry->backing_path, &stat, in fuse_lookup_backing() 1150 backing_entry->d_inode, &stat, &feo->attr); in fuse_lookup_backing() 1876 const struct dentry *entry, struct kstat *stat, in fuse_getattr_initialize() argument 1905 struct kstat *stat, struct fuse_attr *attr) in fuse_stat_to_attr() argument 1911 stat->size = i_size_read(inode); in fuse_stat_to_attr() 1912 stat->mtime.tv_sec = inode->i_mtime.tv_sec; in fuse_stat_to_attr() 1913 stat->mtime.tv_nsec = inode->i_mtime.tv_nsec; in fuse_stat_to_attr() 1914 stat->ctime.tv_sec = inode->i_ctime.tv_sec; in fuse_stat_to_attr() [all …]
|
/fs/ext4/ |
D | symlink.c | 57 struct kstat *stat, u32 request_mask, in ext4_encrypted_symlink_getattr() argument 60 ext4_getattr(mnt_userns, path, stat, request_mask, query_flags); in ext4_encrypted_symlink_getattr() 62 return fscrypt_symlink_getattr(path, stat); in ext4_encrypted_symlink_getattr()
|
/fs/exfat/ |
D | file.c | 271 struct kstat *stat, unsigned int request_mask, in exfat_getattr() argument 277 generic_fillattr(&init_user_ns, inode, stat); in exfat_getattr() 278 exfat_truncate_atime(&stat->atime); in exfat_getattr() 279 stat->result_mask |= STATX_BTIME; in exfat_getattr() 280 stat->btime.tv_sec = ei->i_crtime.tv_sec; in exfat_getattr() 281 stat->btime.tv_nsec = ei->i_crtime.tv_nsec; in exfat_getattr() 282 stat->blksize = EXFAT_SB(inode->i_sb)->cluster_size; in exfat_getattr()
|
/fs/btrfs/ |
D | scrub.c | 184 struct btrfs_scrub_progress stat; member 843 ++sctx->stat.super_errors; in scrub_handle_errored_block() 880 sctx->stat.malloc_errors++; in scrub_handle_errored_block() 881 sctx->stat.read_errors++; in scrub_handle_errored_block() 882 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block() 920 sctx->stat.malloc_errors++; in scrub_handle_errored_block() 921 sctx->stat.read_errors++; in scrub_handle_errored_block() 922 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block() 932 sctx->stat.read_errors++; in scrub_handle_errored_block() 933 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block() [all …]
|