Message ID | 20141120054813.GA32361@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index ec6dcdc..c1e2700 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c @@ -1277,6 +1277,9 @@ xfs_setup_inode( inode->i_ctime.tv_nsec = ip->i_d.di_ctime.t_nsec; xfs_diflags_to_iflags(inode, ip); + if (xfs_sb_version_hascrc(&ip->i_mount->m_sb)) + inode->i_version = ip->i_d.di_changecount; + ip->d_ops = ip->i_mount->m_nondir_inode_ops; lockdep_set_class(&ip->i_lock.mr_lock, &xfs_nondir_ilock_class); switch (inode->i_mode & S_IFMT) {