diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-12-11 14:35:19 +0300 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2018-01-29 14:42:21 +0300 |
commit | f0e28280629e0ec7921f3179409a179b1ea41f24 (patch) | |
tree | 493dd56a64ed49bc87d556885748b1590b5f3449 /fs/xfs/xfs_inode.c | |
parent | bb8c2d66bc6f7dd6e00fc25203efe0858cf91a5e (diff) | |
download | linux-f0e28280629e0ec7921f3179409a179b1ea41f24.tar.xz |
xfs: convert to new i_version API
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 801274126648..dfc5e60d8af3 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -16,6 +16,7 @@ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include <linux/log2.h> +#include <linux/iversion.h> #include "xfs.h" #include "xfs_fs.h" @@ -833,7 +834,7 @@ xfs_ialloc( ip->i_d.di_flags = 0; if (ip->i_d.di_version == 3) { - inode->i_version = 1; + inode_set_iversion(inode, 1); ip->i_d.di_flags2 = 0; ip->i_d.di_cowextsize = 0; ip->i_d.di_crtime.t_sec = (int32_t)tv.tv_sec; |