Home
last modified time | relevance | path

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

123456

/fs/
Dstat.c47 struct inode *inode, struct kstat *stat) in generic_fillattr() argument
52 stat->dev = inode->i_sb->s_dev; in generic_fillattr()
53 stat->ino = inode->i_ino; in generic_fillattr()
54 stat->mode = inode->i_mode; in generic_fillattr()
55 stat->nlink = inode->i_nlink; in generic_fillattr()
56 stat->uid = vfsuid_into_kuid(vfsuid); in generic_fillattr()
57 stat->gid = vfsgid_into_kgid(vfsgid); in generic_fillattr()
58 stat->rdev = inode->i_rdev; in generic_fillattr()
59 stat->size = i_size_read(inode); in generic_fillattr()
60 stat->atime = inode->i_atime; in generic_fillattr()
[all …]
/fs/9p/
Dvfs_inode_dotl.c442 const struct path *path, struct kstat *stat, in v9fs_vfs_getattr_dotl() argument
454 generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat); in v9fs_vfs_getattr_dotl()
479 generic_fillattr(&nop_mnt_idmap, request_mask, d_inode(dentry), stat); in v9fs_vfs_getattr_dotl()
481 stat->blksize = st->st_blksize; in v9fs_vfs_getattr_dotl()
638 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode, in v9fs_stat2inode_dotl() argument
644 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { in v9fs_stat2inode_dotl()
645 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl()
646 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
647 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl()
648 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
[all …]
Dvfs_inode.c81 struct p9_wstat *stat) in p9mode2perm() argument
84 int mode = stat->mode; in p9mode2perm()
108 struct p9_wstat *stat, dev_t *rdev) in p9mode2unixmode() argument
111 u32 mode = stat->mode; in p9mode2unixmode()
114 res = p9mode2perm(v9ses, stat); in p9mode2unixmode()
131 r = sscanf(stat->extension, "%c %i %i", &type, &major, &minor); in p9mode2unixmode()
135 stat->extension); in p9mode2unixmode()
147 type, stat->extension); in p9mode2unixmode()
1006 struct kstat *stat, u32 request_mask, unsigned int flags) in v9fs_vfs_getattr() argument
1017 generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat); in v9fs_vfs_getattr()
[all …]
Dv9fs_vfs.h50 void v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode,
52 void v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode,
56 void v9fs_inode2stat(struct inode *inode, struct p9_wstat *stat);
/fs/nfs/
Diostat.h24 enum nfs_stat_eventcounters stat) in nfs_inc_server_stats() argument
26 this_cpu_inc(server->io_stats->events[stat]); in nfs_inc_server_stats()
30 enum nfs_stat_eventcounters stat) in nfs_inc_stats() argument
32 nfs_inc_server_stats(NFS_SERVER(inode), stat); in nfs_inc_stats()
36 enum nfs_stat_bytecounters stat, in nfs_add_server_stats() argument
39 this_cpu_add(server->io_stats->bytes[stat], addend); in nfs_add_server_stats()
43 enum nfs_stat_bytecounters stat, in nfs_add_stats() argument
46 nfs_add_server_stats(NFS_SERVER(inode), stat, addend); in nfs_add_stats()
/fs/nfsd/
Dnfsxdr.c215 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 …]
Dnfs3xdr.c339 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 …]
Dnfsfh.c622 struct kstat stat; in fh_fill_pre_attrs() local
629 err = fh_getattr(fhp, &stat); in fh_fill_pre_attrs()
634 fhp->fh_pre_change = nfsd4_change_attribute(&stat, inode); in fh_fill_pre_attrs()
636 fhp->fh_pre_mtime = stat.mtime; in fh_fill_pre_attrs()
637 fhp->fh_pre_ctime = stat.ctime; in fh_fill_pre_attrs()
638 fhp->fh_pre_size = stat.size; in fh_fill_pre_attrs()
775 u64 nfsd4_change_attribute(struct kstat *stat, struct inode *inode) in nfsd4_change_attribute() argument
779 if (stat->result_mask & STATX_CHANGE_COOKIE) { in nfsd4_change_attribute()
780 chattr = stat->change_cookie; in nfsd4_change_attribute()
782 !(stat->attributes & STATX_ATTR_CHANGE_MONOTONIC)) { in nfsd4_change_attribute()
[all …]
Dxdr.h85 struct kstat stat; member
91 struct kstat stat; member
104 struct kstat stat; member
175 const struct svc_fh *fhp, const struct kstat *stat);
Dnfs2acl.c53 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/overlayfs/
Dcopy_up.c325 struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() argument
329 .ia_size = stat->size, in ovl_set_size()
336 struct kstat *stat) in ovl_set_timestamps() argument
341 .ia_atime = stat->atime, in ovl_set_timestamps()
342 .ia_mtime = stat->mtime, in ovl_set_timestamps()
349 struct kstat *stat) in ovl_set_attr() argument
353 if (!S_ISLNK(stat->mode)) { in ovl_set_attr()
356 .ia_mode = stat->mode, in ovl_set_attr()
363 .ia_vfsuid = VFSUIDT_INIT(stat->uid), in ovl_set_attr()
364 .ia_vfsgid = VFSGIDT_INIT(stat->gid), in ovl_set_attr()
[all …]
Dinode.c98 static void ovl_map_dev_ino(struct dentry *dentry, struct kstat *stat, int fsid) in ovl_map_dev_ino() argument
111 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino()
123 if (likely(!(stat->ino >> xinoshift))) { in ovl_map_dev_ino()
124 stat->ino |= ((u64)fsid) << (xinoshift + 1); in ovl_map_dev_ino()
125 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino()
129 dentry, stat->ino, xinobits); in ovl_map_dev_ino()
144 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino()
145 stat->ino = dentry->d_inode->i_ino; in ovl_map_dev_ino()
153 stat->dev = ofs->fs[fsid].pseudo_dev; in ovl_map_dev_ino()
158 struct kstat *stat, u32 request_mask, unsigned int flags) in ovl_getattr() argument
[all …]
/fs/fscache/
Dinternal.h119 static inline void fscache_stat(atomic_t *stat) in fscache_stat() argument
121 atomic_inc(stat); in fscache_stat()
124 static inline void fscache_stat_d(atomic_t *stat) in fscache_stat_d() argument
126 atomic_dec(stat); in fscache_stat_d()
129 #define __fscache_stat(stat) (stat) argument
134 #define __fscache_stat(stat) (NULL) argument
135 #define fscache_stat(stat) do {} while (0) argument
136 #define fscache_stat_d(stat) do {} while (0) argument
/fs/xfs/
Dxfs_iops.c553 struct kstat *stat, in xfs_vn_getattr() argument
568 stat->size = XFS_ISIZE(ip); in xfs_vn_getattr()
569 stat->dev = inode->i_sb->s_dev; in xfs_vn_getattr()
570 stat->mode = inode->i_mode; in xfs_vn_getattr()
571 stat->nlink = inode->i_nlink; in xfs_vn_getattr()
572 stat->uid = vfsuid_into_kuid(vfsuid); in xfs_vn_getattr()
573 stat->gid = vfsgid_into_kgid(vfsgid); in xfs_vn_getattr()
574 stat->ino = ip->i_ino; in xfs_vn_getattr()
575 stat->atime = inode->i_atime; in xfs_vn_getattr()
576 stat->mtime = inode->i_mtime; in xfs_vn_getattr()
[all …]
/fs/xfs/libxfs/
Dxfs_btree.c1603 int *stat) /* success/failure */ in xfs_btree_increment() argument
1686 *stat = 1; in xfs_btree_increment()
1690 *stat = 0; in xfs_btree_increment()
1705 int *stat) /* success/failure */ in xfs_btree_decrement() argument
1778 *stat = 1; in xfs_btree_decrement()
1782 *stat = 0; in xfs_btree_decrement()
1882 int *stat) /* success/failure */ in xfs_btree_lookup() argument
1943 *stat = 0; in xfs_btree_lookup()
2017 *stat = 1; in xfs_btree_lookup()
2026 *stat = 0; in xfs_btree_lookup()
[all …]
Dxfs_refcount.h17 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat);
19 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat);
21 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat);
23 struct xfs_refcount_irec *irec, int *stat);
123 struct xfs_refcount_irec *irec, int *stat);
Dxfs_ialloc.h75 xfs_lookup_t dir, int *stat);
81 xfs_inobt_rec_incore_t *rec, int *stat);
105 int *stat);
/fs/vboxsf/
Dsuper.c285 static int vboxsf_statfs(struct dentry *dentry, struct kstatfs *stat) in vboxsf_statfs() argument
300 stat->f_type = VBOXSF_SUPER_MAGIC; in vboxsf_statfs()
301 stat->f_bsize = shfl_volinfo.bytes_per_allocation_unit; in vboxsf_statfs()
305 stat->f_blocks = shfl_volinfo.total_allocation_bytes; in vboxsf_statfs()
309 stat->f_bfree = shfl_volinfo.available_allocation_bytes; in vboxsf_statfs()
310 stat->f_bavail = shfl_volinfo.available_allocation_bytes; in vboxsf_statfs()
312 stat->f_files = 1000; in vboxsf_statfs()
317 stat->f_ffree = 1000000; in vboxsf_statfs()
318 stat->f_fsid.val[0] = 0; in vboxsf_statfs()
319 stat->f_fsid.val[1] = 0; in vboxsf_statfs()
[all …]
/fs/fuse/
Ddir.c1428 struct kstat *stat) in fuse_fillattr() argument
1433 stat->dev = inode->i_sb->s_dev; in fuse_fillattr()
1434 stat->ino = attr->ino; in fuse_fillattr()
1435 stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); in fuse_fillattr()
1436 stat->nlink = attr->nlink; in fuse_fillattr()
1437 stat->uid = make_kuid(fc->user_ns, attr->uid); in fuse_fillattr()
1438 stat->gid = make_kgid(fc->user_ns, attr->gid); in fuse_fillattr()
1439 stat->rdev = inode->i_rdev; in fuse_fillattr()
1440 stat->atime.tv_sec = attr->atime; in fuse_fillattr()
1441 stat->atime.tv_nsec = attr->atimensec; in fuse_fillattr()
[all …]
Dbacking.c29 struct kstat *stat, struct fuse_attr *attr);
1151 struct kstat stat; in fuse_lookup_backing() local
1176 err = vfs_getattr(&fuse_entry->backing_path, &stat, in fuse_lookup_backing()
1182 backing_entry->d_inode, &stat, &feo->attr); in fuse_lookup_backing()
1907 const struct dentry *entry, struct kstat *stat, in fuse_getattr_initialize() argument
1936 struct kstat *stat, struct fuse_attr *attr) in fuse_stat_to_attr() argument
1942 stat->size = i_size_read(inode); in fuse_stat_to_attr()
1943 stat->mtime.tv_sec = inode->i_mtime.tv_sec; in fuse_stat_to_attr()
1944 stat->mtime.tv_nsec = inode->i_mtime.tv_nsec; in fuse_stat_to_attr()
1945 stat->ctime.tv_sec = inode_get_ctime_sec(inode); in fuse_stat_to_attr()
[all …]
/fs/exfat/
Dfile.c229 struct kstat *stat, unsigned int request_mask, in exfat_getattr() argument
235 generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat); in exfat_getattr()
236 exfat_truncate_atime(&stat->atime); in exfat_getattr()
237 stat->result_mask |= STATX_BTIME; in exfat_getattr()
238 stat->btime.tv_sec = ei->i_crtime.tv_sec; in exfat_getattr()
239 stat->btime.tv_nsec = ei->i_crtime.tv_nsec; in exfat_getattr()
240 stat->blksize = EXFAT_SB(inode->i_sb)->cluster_size; in exfat_getattr()
/fs/netfs/
Dinternal.h76 static inline void netfs_stat(atomic_t *stat) in netfs_stat() argument
78 atomic_inc(stat); in netfs_stat()
81 static inline void netfs_stat_d(atomic_t *stat) in netfs_stat_d() argument
83 atomic_dec(stat); in netfs_stat_d()
/fs/ext4/
Dsymlink.c60 struct kstat *stat, u32 request_mask, in ext4_encrypted_symlink_getattr() argument
63 ext4_getattr(idmap, path, stat, request_mask, query_flags); in ext4_encrypted_symlink_getattr()
65 return fscrypt_symlink_getattr(path, stat); in ext4_encrypted_symlink_getattr()
/fs/smb/server/
Dsmb2pdu.c742 static int smb2_get_dos_mode(struct kstat *stat, int attribute) in smb2_get_dos_mode() argument
746 if (S_ISDIR(stat->mode)) { in smb2_get_dos_mode()
752 if (S_ISREG(stat->mode) && (server_conf.share_fake_fscaps & in smb2_get_dos_mode()
756 if (smb2_get_reparse_tag_special_file(stat->mode)) in smb2_get_dos_mode()
2821 struct kstat stat; in smb2_open() local
2931 rc = ksmbd_vfs_getattr(&fp->filp->f_path, &stat); in smb2_open()
3497 rc = ksmbd_vfs_getattr(&path, &stat); in smb2_open()
3501 if (stat.result_mask & STATX_BTIME) in smb2_open()
3502 fp->create_time = ksmbd_UnixTimeToNT(stat.btime); in smb2_open()
3504 fp->create_time = ksmbd_UnixTimeToNT(stat.ctime); in smb2_open()
[all …]
/fs/udf/
Dsymlink.c145 const struct path *path, struct kstat *stat, in udf_symlink_getattr() argument
152 generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat); in udf_symlink_getattr()
165 stat->size = strlen(page_address(page)); in udf_symlink_getattr()

123456