Lines Matching refs:stat
78 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
158 err = vfs_getattr(&realpath, stat, request_mask, flags); in ovl_getattr()
210 stat->ino = lowerstat.ino; in ovl_getattr()
222 stat->blocks = lowerstat.blocks; in ovl_getattr()
240 stat->blocks = lowerdatastat.blocks; in ovl_getattr()
244 err = ovl_map_dev_ino(dentry, stat, lower_layer); in ovl_getattr()
254 stat->nlink = 1; in ovl_getattr()
263 stat->nlink = dentry->d_inode->i_nlink; in ovl_getattr()