summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_inode_item_recover.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-05-15 00:00:02 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2020-05-19 19:40:57 +0300
commitcb7d58594412fff106cde550dd9e0a7999cc2a0c (patch)
tree0b054930f050ecec3b8cb9a94b900c01b18b0472 /fs/xfs/xfs_inode_item_recover.c
parentb90c2a9c8b4422bb9398b50fe3d6163e46dcddec (diff)
downloadlinux-cb7d58594412fff106cde550dd9e0a7999cc2a0c.tar.xz
xfs: call xfs_iformat_fork from xfs_inode_from_disk
We always need to fill out the fork structures when reading the inode, so call xfs_iformat_fork from the tail of xfs_inode_from_disk. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_inode_item_recover.c')
-rw-r--r--fs/xfs/xfs_inode_item_recover.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode_item_recover.c b/fs/xfs/xfs_inode_item_recover.c
index 2bdba612aa71..82ca5ce312c5 100644
--- a/fs/xfs/xfs_inode_item_recover.c
+++ b/fs/xfs/xfs_inode_item_recover.c
@@ -89,9 +89,8 @@ xfs_recover_inode_owner_change(
/* instantiate the inode */
ASSERT(dip->di_version >= 3);
- xfs_inode_from_disk(ip, dip);
- error = xfs_iformat_fork(ip, dip);
+ error = xfs_inode_from_disk(ip, dip);
if (error)
goto out_free_ip;