Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 107) sorted by relevance

12345

/fs/
Dstat.c33 void generic_fillattr(struct inode *inode, struct kstat *stat) in generic_fillattr() argument
35 stat->dev = inode->i_sb->s_dev; in generic_fillattr()
36 stat->ino = inode->i_ino; in generic_fillattr()
37 stat->mode = inode->i_mode; in generic_fillattr()
38 stat->nlink = inode->i_nlink; in generic_fillattr()
39 stat->uid = inode->i_uid; in generic_fillattr()
40 stat->gid = inode->i_gid; in generic_fillattr()
41 stat->rdev = inode->i_rdev; in generic_fillattr()
42 stat->size = i_size_read(inode); in generic_fillattr()
43 stat->atime = inode->i_atime; in generic_fillattr()
[all …]
/fs/nfs/
Diostat.h27 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 …]
Dproc.c521 struct nfs_fsstat *stat) in nfs_proc_statfs() argument
532 nfs_fattr_init(stat->fattr); in nfs_proc_statfs()
537 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs()
538 stat->fbytes = (u64)fsinfo.bfree * fsinfo.bsize; in nfs_proc_statfs()
539 stat->abytes = (u64)fsinfo.bavail * fsinfo.bsize; in nfs_proc_statfs()
540 stat->tfiles = 0; in nfs_proc_statfs()
541 stat->ffiles = 0; in nfs_proc_statfs()
542 stat->afiles = 0; in nfs_proc_statfs()
/fs/9p/
Dvfs_inode_dotl.c458 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()
600 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode, in v9fs_stat2inode_dotl() argument
606 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { in v9fs_stat2inode_dotl()
607 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl()
608 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
609 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl()
610 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
[all …]
Dvfs_inode.c84 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()
1052 v9fs_vfs_getattr(const struct path *path, struct kstat *stat, in v9fs_vfs_getattr() argument
1063 generic_fillattr(d_inode(dentry), stat); in v9fs_vfs_getattr()
1075 generic_fillattr(d_inode(dentry), stat); in v9fs_vfs_getattr()
[all …]
Dv9fs_vfs.h52 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/
Dnfsxdr.c130 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 …]
Dnfs3xdr.c167 struct kstat *stat) in encode_fattr3() argument
171 *p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); in encode_fattr3()
172 *p++ = htonl((u32) (stat->mode & S_IALLUGO)); in encode_fattr3()
173 *p++ = htonl((u32) stat->nlink); in encode_fattr3()
174 *p++ = htonl((u32) from_kuid_munged(userns, stat->uid)); in encode_fattr3()
175 *p++ = htonl((u32) from_kgid_munged(userns, stat->gid)); in encode_fattr3()
176 if (S_ISLNK(stat->mode) && stat->size > NFS3_MAXPATHLEN) { in encode_fattr3()
179 p = xdr_encode_hyper(p, (u64) stat->size); in encode_fattr3()
181 p = xdr_encode_hyper(p, ((u64)stat->blocks) << 9); in encode_fattr3()
182 *p++ = htonl((u32) MAJOR(stat->rdev)); in encode_fattr3()
[all …]
Dxdr.h87 struct kstat stat; member
92 struct kstat stat; member
102 struct kstat stat; member
162 …2 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat);
Dnfs2acl.c53 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl()
127 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_setacl()
157 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_getattr()
179 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_access()
280 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_getaclres()
310 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_attrstatres()
319 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_accessres()
/fs/overlayfs/
Dcopy_up.c180 static int ovl_set_size(struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() argument
184 .ia_size = stat->size, in ovl_set_size()
190 static int ovl_set_timestamps(struct dentry *upperdentry, struct kstat *stat) in ovl_set_timestamps() argument
195 .ia_atime = stat->atime, in ovl_set_timestamps()
196 .ia_mtime = stat->mtime, in ovl_set_timestamps()
202 int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat) in ovl_set_attr() argument
206 if (!S_ISLNK(stat->mode)) { in ovl_set_attr()
209 .ia_mode = stat->mode, in ovl_set_attr()
216 .ia_uid = stat->uid, in ovl_set_attr()
217 .ia_gid = stat->gid, in ovl_set_attr()
[all …]
Dinode.c78 static int ovl_map_dev_ino(struct dentry *dentry, struct kstat *stat, in ovl_map_dev_ino() argument
90 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino()
102 if (stat->ino >> shift) { in ovl_map_dev_ino()
104 dentry, stat->ino, xinobits); in ovl_map_dev_ino()
107 stat->ino |= ((u64)lower_layer->fsid) << shift; in ovl_map_dev_ino()
109 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino()
125 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino()
126 stat->ino = dentry->d_inode->i_ino; in ovl_map_dev_ino()
135 stat->dev = lower_layer->fs->pseudo_dev; in ovl_map_dev_ino()
141 int ovl_getattr(const struct path *path, struct kstat *stat, in ovl_getattr() argument
[all …]
/fs/xfs/libxfs/
Dxfs_btree.c1579 int *stat) /* success/failure */ in xfs_btree_increment() argument
1662 *stat = 1; in xfs_btree_increment()
1666 *stat = 0; in xfs_btree_increment()
1681 int *stat) /* success/failure */ in xfs_btree_decrement() argument
1754 *stat = 1; in xfs_btree_decrement()
1758 *stat = 0; in xfs_btree_decrement()
1857 int *stat) /* success/failure */ in xfs_btree_lookup() argument
1918 *stat = 0; in xfs_btree_lookup()
1991 *stat = 1; in xfs_btree_lookup()
2000 *stat = 0; in xfs_btree_lookup()
[all …]
Dxfs_refcount.h10 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);
Dxfs_rmap.h124 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);
Dxfs_ialloc.h121 xfs_lookup_t dir, int *stat);
127 xfs_inobt_rec_incore_t *rec, int *stat);
151 int *stat);
Dxfs_ialloc_btree.c75 int *stat, in __xfs_inobt_alloc_block() argument
98 *stat = 0; in __xfs_inobt_alloc_block()
104 *stat = 1; in __xfs_inobt_alloc_block()
113 int *stat) in xfs_inobt_alloc_block() argument
115 return __xfs_inobt_alloc_block(cur, start, new, stat, XFS_AG_RESV_NONE); in xfs_inobt_alloc_block()
123 int *stat) in xfs_finobt_alloc_block() argument
126 return xfs_inobt_alloc_block(cur, start, new, stat); in xfs_finobt_alloc_block()
127 return __xfs_inobt_alloc_block(cur, start, new, stat, in xfs_finobt_alloc_block()
Dxfs_rtbitmap.c771 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()
/fs/xfs/
Dxfs_iops.c490 struct kstat *stat, in xfs_vn_getattr() argument
503 stat->size = XFS_ISIZE(ip); in xfs_vn_getattr()
504 stat->dev = inode->i_sb->s_dev; in xfs_vn_getattr()
505 stat->mode = inode->i_mode; in xfs_vn_getattr()
506 stat->nlink = inode->i_nlink; in xfs_vn_getattr()
507 stat->uid = inode->i_uid; in xfs_vn_getattr()
508 stat->gid = inode->i_gid; in xfs_vn_getattr()
509 stat->ino = ip->i_ino; in xfs_vn_getattr()
510 stat->atime = inode->i_atime; in xfs_vn_getattr()
511 stat->mtime = inode->i_mtime; in xfs_vn_getattr()
[all …]
/fs/sdcardfs/
Dinode.c738 struct kstat *lower_stat, struct kstat *stat) in sdcardfs_fillattr() argument
747 stat->dev = inode->i_sb->s_dev; in sdcardfs_fillattr()
748 stat->ino = inode->i_ino; in sdcardfs_fillattr()
749 stat->mode = (inode->i_mode & S_IFMT) | get_mode(mnt, info, top); in sdcardfs_fillattr()
750 stat->nlink = inode->i_nlink; in sdcardfs_fillattr()
751 stat->uid = make_kuid(&init_user_ns, top->d_uid); in sdcardfs_fillattr()
752 stat->gid = make_kgid(&init_user_ns, get_gid(mnt, sb, top)); in sdcardfs_fillattr()
753 stat->rdev = inode->i_rdev; in sdcardfs_fillattr()
754 stat->size = lower_stat->size; in sdcardfs_fillattr()
755 stat->atime = lower_stat->atime; in sdcardfs_fillattr()
[all …]
/fs/fscache/
Dinternal.h281 static inline void fscache_stat(atomic_t *stat) in fscache_stat() argument
283 atomic_inc(stat); in fscache_stat()
286 static inline void fscache_stat_d(atomic_t *stat) in fscache_stat_d() argument
288 atomic_dec(stat); in fscache_stat_d()
291 #define __fscache_stat(stat) (stat) argument
296 #define __fscache_stat(stat) (NULL) argument
297 #define fscache_stat(stat) do {} while (0) argument
298 #define fscache_stat_d(stat) do {} while (0) argument
/fs/fuse/
Ddir.c885 struct kstat *stat) in fuse_fillattr() argument
899 stat->dev = inode->i_sb->s_dev; in fuse_fillattr()
900 stat->ino = attr->ino; in fuse_fillattr()
901 stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); in fuse_fillattr()
902 stat->nlink = attr->nlink; in fuse_fillattr()
903 stat->uid = make_kuid(fc->user_ns, attr->uid); in fuse_fillattr()
904 stat->gid = make_kgid(fc->user_ns, attr->gid); in fuse_fillattr()
905 stat->rdev = inode->i_rdev; in fuse_fillattr()
906 stat->atime.tv_sec = attr->atime; in fuse_fillattr()
907 stat->atime.tv_nsec = attr->atimensec; in fuse_fillattr()
[all …]
/fs/btrfs/
Dscrub.c180 struct btrfs_scrub_progress stat; member
851 ++sctx->stat.super_errors; in scrub_handle_errored_block()
885 sctx->stat.malloc_errors++; in scrub_handle_errored_block()
886 sctx->stat.read_errors++; in scrub_handle_errored_block()
887 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block()
925 sctx->stat.malloc_errors++; in scrub_handle_errored_block()
926 sctx->stat.read_errors++; in scrub_handle_errored_block()
927 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block()
937 sctx->stat.read_errors++; in scrub_handle_errored_block()
938 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block()
[all …]
/fs/erofs/
Dinode.c296 int erofs_getattr(const struct path *path, struct kstat *stat, in erofs_getattr() argument
302 stat->attributes |= STATX_ATTR_COMPRESSED; in erofs_getattr()
304 stat->attributes |= STATX_ATTR_IMMUTABLE; in erofs_getattr()
305 stat->attributes_mask |= (STATX_ATTR_COMPRESSED | in erofs_getattr()
308 generic_fillattr(inode, stat); in erofs_getattr()
/fs/udf/
Dsymlink.c155 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()

12345