Searched refs:stat (Results 1 - 25 of 159) sorted by relevance

1234567

/fs/
H A Dstat.c2 * linux/fs/stat.c
21 void generic_fillattr(struct inode *inode, struct kstat *stat) argument
23 stat->dev = inode->i_sb->s_dev;
24 stat->ino = inode->i_ino;
25 stat->mode = inode->i_mode;
26 stat->nlink = inode->i_nlink;
27 stat->uid = inode->i_uid;
28 stat->gid = inode->i_gid;
29 stat->rdev = inode->i_rdev;
30 stat
52 vfs_getattr_nosec(struct path *path, struct kstat *stat) argument
65 vfs_getattr(struct path *path, struct kstat *stat) argument
77 vfs_fstat(unsigned int fd, struct kstat *stat) argument
90 vfs_fstatat(int dfd, const char __user *filename, struct kstat *stat, int flag) argument
121 vfs_stat(const char __user *name, struct kstat *stat) argument
127 vfs_lstat(const char __user *name, struct kstat *stat) argument
140 cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) argument
180 struct kstat stat; local
193 struct kstat stat; local
205 struct kstat stat; local
229 cp_new_stat(struct kstat *stat, struct stat __user *statbuf) argument
269 struct kstat stat; local
280 struct kstat stat; local
294 struct kstat stat; local
306 struct kstat stat; local
363 cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf) argument
403 struct kstat stat; local
415 struct kstat stat; local
426 struct kstat stat; local
438 struct kstat stat; local
[all...]
H A Dcompat.c129 static int cp_compat_stat(struct kstat *stat, struct compat_stat __user *ubuf) argument
133 if (!old_valid_dev(stat->dev) || !old_valid_dev(stat->rdev))
137 tmp.st_dev = old_encode_dev(stat->dev);
138 tmp.st_ino = stat->ino;
139 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino)
141 tmp.st_mode = stat->mode;
142 tmp.st_nlink = stat->nlink;
143 if (tmp.st_nlink != stat
165 struct kstat stat; local
177 struct kstat stat; local
191 struct kstat stat; local
204 struct kstat stat; local
[all...]
/fs/nfs/
H A Diostat.h26 enum nfs_stat_eventcounters stat)
28 this_cpu_inc(server->io_stats->events[stat]);
32 enum nfs_stat_eventcounters stat)
34 nfs_inc_server_stats(NFS_SERVER(inode), stat); local
38 enum nfs_stat_bytecounters stat,
41 this_cpu_add(server->io_stats->bytes[stat], addend);
45 enum nfs_stat_bytecounters stat,
48 nfs_add_server_stats(NFS_SERVER(inode), stat, addend); local
53 enum nfs_stat_fscachecounters stat,
56 this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], adden
25 nfs_inc_server_stats(const struct nfs_server *server, enum nfs_stat_eventcounters stat) argument
31 nfs_inc_stats(const struct inode *inode, enum nfs_stat_eventcounters stat) argument
37 nfs_add_server_stats(const struct nfs_server *server, enum nfs_stat_bytecounters stat, long addend) argument
44 nfs_add_stats(const struct inode *inode, enum nfs_stat_bytecounters stat, long addend) argument
52 nfs_add_fscache_stats(struct inode *inode, enum nfs_stat_fscachecounters stat, long addend) argument
[all...]
H A Dsymlink.c20 #include <linux/stat.h>
/fs/overlayfs/
H A Dcopy_up.c159 static int ovl_set_timestamps(struct dentry *upperdentry, struct kstat *stat) argument
164 .ia_atime = stat->atime,
165 .ia_mtime = stat->mtime,
171 int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat) argument
175 if (!S_ISLNK(stat->mode)) {
178 .ia_mode = stat->mode,
185 .ia_uid = stat->uid,
186 .ia_gid = stat->gid,
191 ovl_set_timestamps(upperdentry, stat);
199 struct kstat *stat, struc
197 ovl_copy_up_locked(struct dentry *workdir, struct dentry *upperdir, struct dentry *dentry, struct path *lowerpath, struct kstat *stat, struct iattr *attr, const char *link) argument
289 ovl_copy_up_one(struct dentry *parent, struct dentry *dentry, struct path *lowerpath, struct kstat *stat, struct iattr *attr) argument
385 struct kstat stat; local
[all...]
H A Ddir.c73 struct kstat *stat, const char *link,
84 switch (stat->mode & S_IFMT) {
86 err = ovl_do_create(dir, newdentry, stat->mode, debug);
90 err = ovl_do_mkdir(dir, newdentry, stat->mode, debug);
98 stat->mode, stat->rdev, debug);
136 struct kstat *stat)
143 err = vfs_getattr(&realpath, stat);
147 stat->dev = dentry->d_sb->s_dev;
148 stat
72 ovl_create_real(struct inode *dir, struct dentry *newdentry, struct kstat *stat, const char *link, struct dentry *hardlink, bool debug) argument
135 ovl_dir_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) argument
161 ovl_create_upper(struct dentry *dentry, struct inode *inode, struct kstat *stat, const char *link, struct dentry *hardlink) argument
222 struct kstat stat; local
313 ovl_create_over_whiteout(struct dentry *dentry, struct inode *inode, struct kstat *stat, const char *link, struct dentry *hardlink) argument
384 struct kstat stat = { local
[all...]
H A Dinode.c20 struct kstat stat; local
29 err = vfs_getattr(&lowerpath, &stat);
34 stat.size = 0;
36 err = ovl_copy_up_one(parent, dentry, &lowerpath, &stat, attr);
66 struct kstat *stat)
71 return vfs_getattr(&realpath, stat);
65 ovl_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) argument
H A Doverlayfs.h151 struct kstat *stat, const char *link);
181 struct kstat *stat, const char *link,
188 struct path *lowerpath, struct kstat *stat,
191 int ovl_set_attr(struct dentry *upper, struct kstat *stat);
/fs/xfs/
H A Dxfs_itable.h31 int *stat);
34 * Values for stat return value.
41 * Return stat information in bulk (by-inode) for the filesystem.
67 int *stat);
76 int *stat);
H A Dxfs_itable.c49 * Return stat information for one inode.
60 int *stat) /* BULKSTAT_RV_... */
67 *stat = BULKSTAT_RV_NOTHING;
138 *stat = BULKSTAT_RV_DIDONE;
169 int *stat) /* BULKSTAT_RV_... */
172 xfs_bulkstat_one_fmt, ubused, stat);
220 int stat; local
224 error = xfs_inobt_lookup(cur, agino, XFS_LOOKUP_LE, &stat);
227 if (!stat) {
233 error = xfs_inobt_get_rec(cur, irec, &stat);
53 xfs_bulkstat_one_int( struct xfs_mount *mp, xfs_ino_t ino, void __user *buffer, int ubsize, bulkstat_one_fmt_pf formatter, int *ubused, int *stat) argument
163 xfs_bulkstat_one( xfs_mount_t *mp, xfs_ino_t ino, void __user *buffer, int ubsize, int *ubused, int *stat) argument
401 int stat; local
582 int stat; local
[all...]
H A Dxfs_iops.c435 struct kstat *stat)
446 stat->size = XFS_ISIZE(ip);
447 stat->dev = inode->i_sb->s_dev;
448 stat->mode = ip->i_d.di_mode;
449 stat->nlink = ip->i_d.di_nlink;
450 stat->uid = inode->i_uid;
451 stat->gid = inode->i_gid;
452 stat->ino = ip->i_ino;
453 stat->atime = inode->i_atime;
454 stat
432 xfs_vn_getattr( struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) argument
[all...]
/fs/xfs/libxfs/
H A Dxfs_btree.h87 #define __XFS_BTREE_STATS_INC(type, stat) \
88 XFS_STATS_INC(xs_ ## type ## _2_ ## stat)
89 #define XFS_BTREE_STATS_INC(cur, stat) \
92 case XFS_BTNUM_BNO: __XFS_BTREE_STATS_INC(abtb, stat); break; \
93 case XFS_BTNUM_CNT: __XFS_BTREE_STATS_INC(abtc, stat); break; \
94 case XFS_BTNUM_BMAP: __XFS_BTREE_STATS_INC(bmbt, stat); break; \
95 case XFS_BTNUM_INO: __XFS_BTREE_STATS_INC(ibt, stat); break; \
96 case XFS_BTNUM_FINO: __XFS_BTREE_STATS_INC(fibt, stat); break; \
101 #define __XFS_BTREE_STATS_ADD(type, stat, val) \
102 XFS_STATS_ADD(xs_ ## type ## _2_ ## stat, va
[all...]
H A Dxfs_ialloc.h147 xfs_lookup_t dir, int *stat);
153 xfs_inobt_rec_incore_t *rec, int *stat);
H A Dxfs_alloc.h218 int *stat); /* success/failure */
225 int *stat); /* success/failure */
232 int *stat); /* output: success/failure */
H A Dxfs_btree.c1437 int *stat) /* success/failure */
1524 *stat = 1;
1529 *stat = 0;
1545 int *stat) /* success/failure */
1622 *stat = 1;
1627 *stat = 0;
1696 * stat is set to 0 if can't find any such record, 1 for success.
1702 int *stat) /* success/failure */
1757 *stat = 0;
1832 *stat
1434 xfs_btree_increment( struct xfs_btree_cur *cur, int level, int *stat) argument
1542 xfs_btree_decrement( struct xfs_btree_cur *cur, int level, int *stat) argument
1699 xfs_btree_lookup( struct xfs_btree_cur *cur, xfs_lookup_t dir, int *stat) argument
1968 xfs_btree_lshift( struct xfs_btree_cur *cur, int level, int *stat) argument
2151 xfs_btree_rshift( struct xfs_btree_cur *cur, int level, int *stat) argument
2327 __xfs_btree_split( struct xfs_btree_cur *cur, int level, union xfs_btree_ptr *ptrp, union xfs_btree_key *key, struct xfs_btree_cur **curp, int *stat) argument
2513 int *stat; /* success/failure */ member in struct:xfs_btree_split_args
2556 xfs_btree_split( struct xfs_btree_cur *cur, int level, union xfs_btree_ptr *ptrp, union xfs_btree_key *key, struct xfs_btree_cur **curp, int *stat) argument
2591 xfs_btree_new_iroot( struct xfs_btree_cur *cur, int *logflags, int *stat) argument
2701 xfs_btree_new_root( struct xfs_btree_cur *cur, int *stat) argument
2825 xfs_btree_make_block_unfull( struct xfs_btree_cur *cur, int level, int numrecs, int *oindex, int *index, union xfs_btree_ptr *nptr, struct xfs_btree_cur **ncur, union xfs_btree_rec *nrec, int *stat) argument
2896 xfs_btree_insrec( struct xfs_btree_cur *cur, int level, union xfs_btree_ptr *ptrp, union xfs_btree_rec *recp, struct xfs_btree_cur **curp, int *stat) argument
3107 xfs_btree_insert( struct xfs_btree_cur *cur, int *stat) argument
3324 xfs_btree_dec_cursor( struct xfs_btree_cur *cur, int level, int *stat) argument
3350 xfs_btree_delrec( struct xfs_btree_cur *cur, int level, int *stat) argument
3872 xfs_btree_delete( struct xfs_btree_cur *cur, int *stat) argument
3917 xfs_btree_get_rec( struct xfs_btree_cur *cur, union xfs_btree_rec **recp, int *stat) argument
[all...]
/fs/nfsd/
H A Dnfsxdr.c145 struct kstat *stat)
152 type = (stat->mode & S_IFMT);
155 *p++ = htonl((u32) stat->mode);
156 *p++ = htonl((u32) stat->nlink);
157 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid));
158 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid));
160 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) {
163 *p++ = htonl((u32) stat->size);
165 *p++ = htonl((u32) stat->blksize);
167 *p++ = htonl(new_encode_dev(stat
144 encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) argument
200 nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) argument
486 struct kstatfs *stat = &resp->stats; local
[all...]
H A Dxdr.h85 struct kstat stat; member in struct:nfsd_attrstat
90 struct kstat stat; member in struct:nfsd_diropres
100 struct kstat stat; member in struct:nfsd_readres
170 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat);
H A Dnfs3xdr.c165 struct kstat *stat)
167 *p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]);
168 *p++ = htonl((u32) (stat->mode & S_IALLUGO));
169 *p++ = htonl((u32) stat->nlink);
170 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid));
171 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid));
172 if (S_ISLNK(stat->mode) && stat->size > NFS3_MAXPATHLEN) {
175 p = xdr_encode_hyper(p, (u64) stat->size);
177 p = xdr_encode_hyper(p, ((u64)stat
164 encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) argument
208 struct kstat stat; local
[all...]
/fs/9p/
H A Dvfs_inode_dotl.c31 #include <linux/stat.h>
133 * initialize the inode with the stat info
453 * inode with stat. We need to get an inode
475 struct kstat *stat)
484 generic_fillattr(dentry->d_inode, stat);
491 /* Ask for all the fields in stat structure. Server will return
500 generic_fillattr(dentry->d_inode, stat);
502 stat->blksize = st->st_blksize;
607 * v9fs_stat2inode_dotl - populate an inode structure with stat info
608 * @stat
474 v9fs_vfs_getattr_dotl(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) argument
614 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode) argument
[all...]
H A Dvfs_inode.c33 #include <linux/stat.h>
95 * @stat: p9_wstat from which mode need to be derived
99 struct p9_wstat *stat)
102 int mode = stat->mode;
121 * @stat: p9_wstat from which mode need to be derived
126 struct p9_wstat *stat, dev_t *rdev)
129 u32 mode = stat->mode;
132 res = p9mode2perm(v9ses, stat);
149 strlcpy(ext, stat->extension, sizeof(ext));
160 type, stat
98 p9mode2perm(struct v9fs_session_info *v9ses, struct p9_wstat *stat) argument
125 p9mode2unixmode(struct v9fs_session_info *v9ses, struct p9_wstat *stat, dev_t *rdev) argument
1054 v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) argument
1157 v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode, struct super_block *sb) argument
[all...]
/fs/fscache/
H A Dinternal.h274 static inline void fscache_stat(atomic_t *stat) argument
276 atomic_inc(stat);
279 static inline void fscache_stat_d(atomic_t *stat) argument
281 atomic_dec(stat);
284 #define __fscache_stat(stat) (stat)
289 #define __fscache_stat(stat) (NULL)
290 #define fscache_stat(stat) do {} while (0)
291 #define fscache_stat_d(stat) do {} while (0)
/fs/coda/
H A Dsymlink.c14 #include <linux/stat.h>
/fs/ocfs2/
H A Dfile.h63 struct kstat *stat);
/fs/proc/
H A DMakefile20 proc-y += stat.o
H A Dproc_net.c16 #include <linux/stat.h>
143 struct kstat *stat)
150 generic_fillattr(inode, stat);
153 stat->nlink = net->proc_net->nlink;
202 net_statd = proc_net_mkdir(net, "stat", netd);
218 remove_proc_entry("stat", net->proc_net);
142 proc_tgid_net_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) argument

Completed in 302 milliseconds

1234567