Lines Matching refs:stat
458 v9fs_vfs_getattr_dotl(const struct path *path, struct kstat *stat, in v9fs_vfs_getattr_dotl() argument
469 generic_fillattr(d_inode(dentry), stat); in v9fs_vfs_getattr_dotl()
485 generic_fillattr(d_inode(dentry), stat); in v9fs_vfs_getattr_dotl()
487 stat->blksize = st->st_blksize; in v9fs_vfs_getattr_dotl()
600 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode, in v9fs_stat2inode_dotl() argument
606 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { in v9fs_stat2inode_dotl()
607 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl()
608 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
609 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl()
610 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
611 inode->i_ctime.tv_sec = stat->st_ctime_sec; in v9fs_stat2inode_dotl()
612 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; in v9fs_stat2inode_dotl()
613 inode->i_uid = stat->st_uid; in v9fs_stat2inode_dotl()
614 inode->i_gid = stat->st_gid; in v9fs_stat2inode_dotl()
615 set_nlink(inode, stat->st_nlink); in v9fs_stat2inode_dotl()
617 mode = stat->st_mode & S_IALLUGO; in v9fs_stat2inode_dotl()
622 v9fs_i_size_write(inode, stat->st_size); in v9fs_stat2inode_dotl()
623 inode->i_blocks = stat->st_blocks; in v9fs_stat2inode_dotl()
625 if (stat->st_result_mask & P9_STATS_ATIME) { in v9fs_stat2inode_dotl()
626 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl()
627 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
629 if (stat->st_result_mask & P9_STATS_MTIME) { in v9fs_stat2inode_dotl()
630 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl()
631 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
633 if (stat->st_result_mask & P9_STATS_CTIME) { in v9fs_stat2inode_dotl()
634 inode->i_ctime.tv_sec = stat->st_ctime_sec; in v9fs_stat2inode_dotl()
635 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; in v9fs_stat2inode_dotl()
637 if (stat->st_result_mask & P9_STATS_UID) in v9fs_stat2inode_dotl()
638 inode->i_uid = stat->st_uid; in v9fs_stat2inode_dotl()
639 if (stat->st_result_mask & P9_STATS_GID) in v9fs_stat2inode_dotl()
640 inode->i_gid = stat->st_gid; in v9fs_stat2inode_dotl()
641 if (stat->st_result_mask & P9_STATS_NLINK) in v9fs_stat2inode_dotl()
642 set_nlink(inode, stat->st_nlink); in v9fs_stat2inode_dotl()
643 if (stat->st_result_mask & P9_STATS_MODE) { in v9fs_stat2inode_dotl()
644 inode->i_mode = stat->st_mode; in v9fs_stat2inode_dotl()
650 if (stat->st_result_mask & P9_STATS_RDEV) in v9fs_stat2inode_dotl()
651 inode->i_rdev = new_decode_dev(stat->st_rdev); in v9fs_stat2inode_dotl()
653 stat->st_result_mask & P9_STATS_SIZE) in v9fs_stat2inode_dotl()
654 v9fs_i_size_write(inode, stat->st_size); in v9fs_stat2inode_dotl()
655 if (stat->st_result_mask & P9_STATS_BLOCKS) in v9fs_stat2inode_dotl()
656 inode->i_blocks = stat->st_blocks; in v9fs_stat2inode_dotl()
658 if (stat->st_result_mask & P9_STATS_GEN) in v9fs_stat2inode_dotl()
659 inode->i_generation = stat->st_gen; in v9fs_stat2inode_dotl()