/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->atime = inode->i_atime; in generic_fillattr() 31 stat->mtime = inode->i_mtime; in generic_fillattr() [all …]
|
D | compat.c | 140 static int cp_compat_stat(struct kstat *stat, struct compat_stat __user *ubuf) in cp_compat_stat() argument 142 compat_ino_t ino = stat->ino; in cp_compat_stat() 147 SET_UID(uid, stat->uid); in cp_compat_stat() 148 SET_GID(gid, stat->gid); in cp_compat_stat() 150 if ((u64) stat->size > MAX_NON_LFS || in cp_compat_stat() 151 !old_valid_dev(stat->dev) || in cp_compat_stat() 152 !old_valid_dev(stat->rdev)) in cp_compat_stat() 154 if (sizeof(ino) < sizeof(stat->ino) && ino != stat->ino) in cp_compat_stat() 160 err = __put_user(old_encode_dev(stat->dev), &ubuf->st_dev); in cp_compat_stat() 162 err |= __put_user(stat->mode, &ubuf->st_mode); in cp_compat_stat() [all …]
|
/fs/nfs/ |
D | iostat.h | 23 enum nfs_stat_eventcounters stat) in nfs_inc_server_stats() argument 30 iostats->events[stat]++; in nfs_inc_server_stats() 35 enum nfs_stat_eventcounters stat) in nfs_inc_stats() argument 37 nfs_inc_server_stats(NFS_SERVER(inode), stat); in nfs_inc_stats() 41 enum nfs_stat_bytecounters stat, in nfs_add_server_stats() argument 49 iostats->bytes[stat] += addend; in nfs_add_server_stats() 54 enum nfs_stat_bytecounters stat, in nfs_add_stats() argument 57 nfs_add_server_stats(NFS_SERVER(inode), stat, addend); in nfs_add_stats()
|
D | nfs2xdr.c | 671 int stat; member 715 nfs_stat_to_errno(int stat) in nfs_stat_to_errno() argument 719 for (i = 0; nfs_errtbl[i].stat != -1; i++) { in nfs_stat_to_errno() 720 if (nfs_errtbl[i].stat == stat) in nfs_stat_to_errno() 723 dprintk("nfs_stat_to_errno: bad nfs status return value: %d\n", stat); in nfs_stat_to_errno() 746 PROC(REMOVE, removeargs, stat, 0), 747 PROC(RENAME, renameargs, stat, 0), 748 PROC(LINK, linkargs, stat, 0), 749 PROC(SYMLINK, symlinkargs, stat, 0), 751 PROC(RMDIR, diropargs, stat, 0),
|
D | proc.c | 496 struct nfs_fsstat *stat) in nfs_proc_statfs() argument 507 nfs_fattr_init(stat->fattr); in nfs_proc_statfs() 512 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs() 513 stat->fbytes = (u64)fsinfo.bfree * fsinfo.bsize; in nfs_proc_statfs() 514 stat->abytes = (u64)fsinfo.bavail * fsinfo.bsize; in nfs_proc_statfs() 515 stat->tfiles = 0; in nfs_proc_statfs() 516 stat->ffiles = 0; in nfs_proc_statfs() 517 stat->afiles = 0; in nfs_proc_statfs()
|
/fs/nfsd/ |
D | nfsxdr.c | 152 struct kstat *stat) in encode_fattr() argument 159 type = (stat->mode & S_IFMT); in encode_fattr() 162 *p++ = htonl((u32) stat->mode); in encode_fattr() 163 *p++ = htonl((u32) stat->nlink); in encode_fattr() 164 *p++ = htonl((u32) nfsd_ruid(rqstp, stat->uid)); in encode_fattr() 165 *p++ = htonl((u32) nfsd_rgid(rqstp, stat->gid)); in encode_fattr() 167 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) { in encode_fattr() 170 *p++ = htonl((u32) stat->size); in encode_fattr() 172 *p++ = htonl((u32) stat->blksize); in encode_fattr() 174 *p++ = htonl(new_encode_dev(stat->rdev)); in encode_fattr() [all …]
|
D | nfs3xdr.c | 176 struct kstat *stat) in encode_fattr3() argument 178 *p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); in encode_fattr3() 179 *p++ = htonl((u32) stat->mode); in encode_fattr3() 180 *p++ = htonl((u32) stat->nlink); in encode_fattr3() 181 *p++ = htonl((u32) nfsd_ruid(rqstp, stat->uid)); in encode_fattr3() 182 *p++ = htonl((u32) nfsd_rgid(rqstp, stat->gid)); in encode_fattr3() 183 if (S_ISLNK(stat->mode) && stat->size > NFS3_MAXPATHLEN) { in encode_fattr3() 186 p = xdr_encode_hyper(p, (u64) stat->size); in encode_fattr3() 188 p = xdr_encode_hyper(p, ((u64)stat->blocks) << 9); in encode_fattr3() 189 *p++ = htonl((u32) MAJOR(stat->rdev)); in encode_fattr3() [all …]
|
D | nfs4callback.c | 148 int stat; member 185 nfs_cb_stat_to_errno(int stat) in nfs_cb_stat_to_errno() argument 188 for (i = 0; nfs_cb_errtbl[i].stat != -1; i++) { in nfs_cb_stat_to_errno() 189 if (nfs_cb_errtbl[i].stat == stat) in nfs_cb_stat_to_errno() 197 return stat; in nfs_cb_stat_to_errno()
|
D | nfs4xdr.c | 1279 static char *nfsd4_path(struct svc_rqst *rqstp, struct svc_export *exp, __be32 *stat) in nfsd4_path() argument 1285 *stat = exp_pseudoroot(rqstp, &tmp_fh); in nfsd4_path() 1286 if (*stat) in nfsd4_path() 1295 *stat = nfserr_notsupp; in nfsd4_path() 1415 struct kstat stat; in nfsd4_encode_fattr() local 1439 err = vfs_getattr(exp->ex_path.mnt, dentry, &stat); in nfsd4_encode_fattr() 1499 dummy = nfs4_ftypes[(stat.mode & S_IFMT) >> 12]; in nfsd4_encode_fattr() 1521 WRITE32(stat.ctime.tv_sec); in nfsd4_encode_fattr() 1522 WRITE32(stat.ctime.tv_nsec); in nfsd4_encode_fattr() 1527 WRITE64(stat.size); in nfsd4_encode_fattr() [all …]
|
/fs/xfs/ |
D | xfs_btree.h | 115 #define __XFS_BTREE_STATS_INC(type, stat) \ argument 116 XFS_STATS_INC(xs_ ## type ## _2_ ## stat) 117 #define XFS_BTREE_STATS_INC(cur, stat) \ argument 120 case XFS_BTNUM_BNO: __XFS_BTREE_STATS_INC(abtb, stat); break; \ 121 case XFS_BTNUM_CNT: __XFS_BTREE_STATS_INC(abtc, stat); break; \ 122 case XFS_BTNUM_BMAP: __XFS_BTREE_STATS_INC(bmbt, stat); break; \ 123 case XFS_BTNUM_INO: __XFS_BTREE_STATS_INC(ibt, stat); break; \ 128 #define __XFS_BTREE_STATS_ADD(type, stat, val) \ argument 129 XFS_STATS_ADD(xs_ ## type ## _2_ ## stat, val) 130 #define XFS_BTREE_STATS_ADD(cur, stat, val) \ argument [all …]
|
D | xfs_btree.c | 1295 int *stat) /* success/failure */ in xfs_btree_increment() argument 1382 *stat = 1; in xfs_btree_increment() 1387 *stat = 0; in xfs_btree_increment() 1403 int *stat) /* success/failure */ in xfs_btree_decrement() argument 1480 *stat = 1; in xfs_btree_decrement() 1485 *stat = 0; in xfs_btree_decrement() 1560 int *stat) /* success/failure */ in xfs_btree_lookup() argument 1615 *stat = 0; in xfs_btree_lookup() 1690 *stat = 1; in xfs_btree_lookup() 1699 *stat = 0; in xfs_btree_lookup() [all …]
|
D | xfs_itable.h | 34 int *stat); 88 int *stat); 100 int *stat);
|
D | xfs_ialloc.h | 157 __int32_t fcnt, xfs_inofree_t free, int *stat); 164 __int32_t fcnt, xfs_inofree_t free, int *stat); 170 __int32_t *fcnt, xfs_inofree_t *free, int *stat);
|
D | xfs_rtalloc.c | 223 int stat; /* status from internal calls */ in xfs_rtallocate_extent_block() local 237 error = xfs_rtcheck_range(mp, tp, i, maxlen, 1, &next, &stat); in xfs_rtallocate_extent_block() 241 if (stat) { in xfs_rtallocate_extent_block() 821 int *stat) /* out: any good extents here? */ in xfs_rtany_summary() argument 842 *stat = 1; in xfs_rtany_summary() 849 *stat = 0; in xfs_rtany_summary() 908 int *stat) /* out: 1 for allocated, 0 for not */ in xfs_rtcheck_alloc_range() argument 912 return xfs_rtcheck_range(mp, tp, bno, len, 0, &new, stat); in xfs_rtcheck_alloc_range() 928 int *stat) /* out: 1 for matches, 0 for not */ in xfs_rtcheck_range() argument 987 *stat = 0; in xfs_rtcheck_range() [all …]
|
D | xfs_itable.c | 58 int *stat) /* BULKSTAT_RV_... */ in xfs_bulkstat_one_iget() argument 67 *stat = BULKSTAT_RV_NOTHING; in xfs_bulkstat_one_iget() 222 int *stat) /* BULKSTAT_RV_... */ in xfs_bulkstat_one_int() argument 229 *stat = BULKSTAT_RV_NOTHING; in xfs_bulkstat_one_int() 240 error = xfs_bulkstat_one_iget(mp, ino, bno, buf, stat); in xfs_bulkstat_one_int() 251 *stat = BULKSTAT_RV_DIDONE; in xfs_bulkstat_one_int() 268 int *stat) /* BULKSTAT_RV_... */ in xfs_bulkstat_one() argument 272 ubused, dibuff, stat); in xfs_bulkstat_one()
|
/fs/xfs/linux-2.6/ |
D | xfs_iops.c | 538 struct kstat *stat) in xfs_vn_getattr() argument 549 stat->size = XFS_ISIZE(ip); in xfs_vn_getattr() 550 stat->dev = inode->i_sb->s_dev; in xfs_vn_getattr() 551 stat->mode = ip->i_d.di_mode; in xfs_vn_getattr() 552 stat->nlink = ip->i_d.di_nlink; in xfs_vn_getattr() 553 stat->uid = ip->i_d.di_uid; in xfs_vn_getattr() 554 stat->gid = ip->i_d.di_gid; in xfs_vn_getattr() 555 stat->ino = ip->i_ino; in xfs_vn_getattr() 557 stat->ino += mp->m_inoadd; in xfs_vn_getattr() 559 stat->atime = inode->i_atime; in xfs_vn_getattr() [all …]
|
/fs/fuse/ |
D | dir.c | 760 struct kstat *stat) in fuse_fillattr() argument 762 stat->dev = inode->i_sb->s_dev; in fuse_fillattr() 763 stat->ino = attr->ino; in fuse_fillattr() 764 stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); in fuse_fillattr() 765 stat->nlink = attr->nlink; in fuse_fillattr() 766 stat->uid = attr->uid; in fuse_fillattr() 767 stat->gid = attr->gid; in fuse_fillattr() 768 stat->rdev = inode->i_rdev; in fuse_fillattr() 769 stat->atime.tv_sec = attr->atime; in fuse_fillattr() 770 stat->atime.tv_nsec = attr->atimensec; in fuse_fillattr() [all …]
|
/fs/9p/ |
D | vfs_inode.c | 740 struct kstat *stat) in v9fs_vfs_getattr() argument 751 return simple_getattr(mnt, dentry, stat); in v9fs_vfs_getattr() 762 generic_fillattr(dentry->d_inode, stat); in v9fs_vfs_getattr() 826 v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode, in v9fs_stat2inode() argument 834 inode->i_atime.tv_sec = stat->atime; in v9fs_stat2inode() 835 inode->i_mtime.tv_sec = stat->mtime; in v9fs_stat2inode() 836 inode->i_ctime.tv_sec = stat->mtime; in v9fs_stat2inode() 842 inode->i_uid = stat->n_uid; in v9fs_stat2inode() 843 inode->i_gid = stat->n_gid; in v9fs_stat2inode() 846 inode->i_mode = p9mode2unixmode(v9ses, stat->mode); in v9fs_stat2inode() [all …]
|
/fs/ubifs/ |
D | dir.c | 1135 struct kstat *stat) in ubifs_getattr() argument 1142 stat->dev = inode->i_sb->s_dev; in ubifs_getattr() 1143 stat->ino = inode->i_ino; in ubifs_getattr() 1144 stat->mode = inode->i_mode; in ubifs_getattr() 1145 stat->nlink = inode->i_nlink; in ubifs_getattr() 1146 stat->uid = inode->i_uid; in ubifs_getattr() 1147 stat->gid = inode->i_gid; in ubifs_getattr() 1148 stat->rdev = inode->i_rdev; in ubifs_getattr() 1149 stat->atime = inode->i_atime; in ubifs_getattr() 1150 stat->mtime = inode->i_mtime; in ubifs_getattr() [all …]
|
/fs/proc/ |
D | root.c | 141 static int proc_root_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat in proc_root_getattr() argument 144 generic_fillattr(dentry->d_inode, stat); in proc_root_getattr() 145 stat->nlink = proc_root.nlink + nr_processes(); in proc_root_getattr()
|
D | proc_net.c | 136 struct kstat *stat) in proc_tgid_net_getattr() argument 143 generic_fillattr(inode, stat); in proc_tgid_net_getattr() 146 stat->nlink = net->proc_net->nlink; in proc_tgid_net_getattr()
|
D | proc_sysctl.c | 338 static int proc_sys_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in proc_sys_getattr() argument 347 generic_fillattr(inode, stat); in proc_sys_getattr() 349 stat->mode = (stat->mode & S_IFMT) | table->mode; in proc_sys_getattr()
|
/fs/minix/ |
D | inode.c | 588 int minix_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in minix_getattr() argument 592 generic_fillattr(dentry->d_inode, stat); in minix_getattr() 594 stat->blocks = (BLOCK_SIZE / 512) * V1_minix_blocks(stat->size, sb); in minix_getattr() 596 stat->blocks = (sb->s_blocksize / 512) * V2_minix_blocks(stat->size, sb); in minix_getattr() 597 stat->blksize = sb->s_blocksize; in minix_getattr()
|
/fs/sysv/ |
D | itree.c | 443 int sysv_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) in sysv_getattr() argument 446 generic_fillattr(dentry->d_inode, stat); in sysv_getattr() 447 stat->blocks = (s->s_blocksize / 512) * sysv_nblocks(s, stat->size); in sysv_getattr() 448 stat->blksize = s->s_blocksize; in sysv_getattr()
|
/fs/lockd/ |
D | svc4proc.c | 257 __be32 stat; in nlm4svc_callback() local 269 stat = func(rqstp, argp, &call->a_res); in nlm4svc_callback() 270 if (stat != 0) { in nlm4svc_callback() 272 return stat; in nlm4svc_callback()
|