Lines Matching refs:stat
180 static int ovl_set_size(struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() argument
184 .ia_size = stat->size, in ovl_set_size()
190 static int ovl_set_timestamps(struct dentry *upperdentry, struct kstat *stat) in ovl_set_timestamps() argument
195 .ia_atime = stat->atime, in ovl_set_timestamps()
196 .ia_mtime = stat->mtime, in ovl_set_timestamps()
202 int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat) in ovl_set_attr() argument
206 if (!S_ISLNK(stat->mode)) { in ovl_set_attr()
209 .ia_mode = stat->mode, in ovl_set_attr()
216 .ia_uid = stat->uid, in ovl_set_attr()
217 .ia_gid = stat->gid, in ovl_set_attr()
222 ovl_set_timestamps(upperdentry, stat); in ovl_set_attr()
389 struct kstat stat; member
447 if (S_ISREG(c->stat.mode) && !c->metacopy) { in ovl_copy_up_inode()
456 err = ovl_copy_up_data(&datapath, &upperpath, c->stat.size); in ovl_copy_up_inode()
487 err = ovl_set_size(temp, &c->stat); in ovl_copy_up_inode()
489 err = ovl_set_attr(temp, &c->stat); in ovl_copy_up_inode()
536 .mode = c->stat.mode & S_IFMT, in ovl_copy_up_workdir()
537 .rdev = c->stat.rdev, in ovl_copy_up_workdir()
560 if (S_ISDIR(c->stat.mode) && c->indexed) { in ovl_copy_up_workdir()
605 temp = ovl_do_tmpfile(c->workdir, c->stat.mode); in ovl_copy_up_tmpfile()
662 if (S_ISDIR(c->stat.mode)) in ovl_do_copy_up()
668 if (S_ISDIR(c->stat.mode) || c->stat.nlink == 1 || to_index) in ovl_do_copy_up()
690 if (S_ISREG(c->stat.mode) && ofs->tmpfile) in ovl_do_copy_up()
753 if (c->stat.size) { in ovl_copy_up_meta_inode_data()
760 err = ovl_copy_up_data(&datapath, &upperpath, c->stat.size); in ovl_copy_up_meta_inode_data()
803 err = vfs_getattr(&ctx.lowerpath, &ctx.stat, in ovl_copy_up_one()
808 ctx.metacopy = ovl_need_meta_copy_up(dentry, ctx.stat.mode, flags); in ovl_copy_up_one()
824 ctx.stat.size = 0; in ovl_copy_up_one()
826 if (S_ISLNK(ctx.stat.mode)) { in ovl_copy_up_one()