Lines Matching refs:stat
98 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
174 err = ovl_do_getattr(&realpath, stat, request_mask, flags); in ovl_getattr()
179 generic_fill_statx_attr(inode, stat); in ovl_getattr()
223 stat->ino = lowerstat.ino; in ovl_getattr()
235 stat->blocks = lowerstat.blocks; in ovl_getattr()
258 round_up(stat->size, stat->blksize) >> 9; in ovl_getattr()
260 stat->blocks = lowerdatastat.blocks; in ovl_getattr()
264 ovl_map_dev_ino(dentry, stat, fsid); in ovl_getattr()
272 stat->nlink = 1; in ovl_getattr()
281 stat->nlink = dentry->d_inode->i_nlink; in ovl_getattr()