Lines Matching refs:kern_f
862 struct xfs_commit_range_fresh *kern_f; in xfs_ioc_start_commit() local
873 kern_f = (struct xfs_commit_range_fresh *)&args.file2_freshness; in xfs_ioc_start_commit()
875 memcpy(&kern_f->fsid, ip2->i_mount->m_fixedfsid, sizeof(xfs_fsid_t)); in xfs_ioc_start_commit()
879 kern_f->file2_ctime = ts.tv_sec; in xfs_ioc_start_commit()
880 kern_f->file2_ctime_nsec = ts.tv_nsec; in xfs_ioc_start_commit()
882 kern_f->file2_mtime = ts.tv_sec; in xfs_ioc_start_commit()
883 kern_f->file2_mtime_nsec = ts.tv_nsec; in xfs_ioc_start_commit()
884 kern_f->file2_ino = ip2->i_ino; in xfs_ioc_start_commit()
885 kern_f->file2_gen = inode2->i_generation; in xfs_ioc_start_commit()
886 kern_f->magic = XCR_FRESH_MAGIC; in xfs_ioc_start_commit()
890 if (copy_to_user(user_f, kern_f, sizeof(*kern_f))) in xfs_ioc_start_commit()
909 struct xfs_commit_range_fresh *kern_f; in xfs_ioc_commit_range() local
915 kern_f = (struct xfs_commit_range_fresh *)&args.file2_freshness; in xfs_ioc_commit_range()
921 if (kern_f->magic != XCR_FRESH_MAGIC) in xfs_ioc_commit_range()
923 if (memcmp(&kern_f->fsid, mp->m_fixedfsid, sizeof(xfs_fsid_t))) in xfs_ioc_commit_range()
930 fxr.file2_ino = kern_f->file2_ino; in xfs_ioc_commit_range()
931 fxr.file2_gen = kern_f->file2_gen; in xfs_ioc_commit_range()
932 fxr.file2_mtime.tv_sec = kern_f->file2_mtime; in xfs_ioc_commit_range()
933 fxr.file2_mtime.tv_nsec = kern_f->file2_mtime_nsec; in xfs_ioc_commit_range()
934 fxr.file2_ctime.tv_sec = kern_f->file2_ctime; in xfs_ioc_commit_range()
935 fxr.file2_ctime.tv_nsec = kern_f->file2_ctime_nsec; in xfs_ioc_commit_range()