summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_itable.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-10-19 20:07:09 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2017-10-27 00:38:27 +0200
commit66f364649d870c7541c30a2f02a32fd4c88684f0 (patch)
treeb1609eedc361f36f68f1d492926e4eb4aa6b99dc /fs/xfs/xfs_itable.c
parentxfs: remove the never fully implemented UUID fork format (diff)
downloadlinux-66f364649d870c7541c30a2f02a32fd4c88684f0.tar.xz
linux-66f364649d870c7541c30a2f02a32fd4c88684f0.zip
xfs: remove if_rdev
We can simply use the i_rdev field in the Linux inode and just convert to and from the XFS dev_t when reading or logging/writing the inode. Signed-off-by: Christoph Hellwig <hch@lst.de> 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_itable.c')
-rw-r--r--fs/xfs/xfs_itable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index e272dad422cb..d58310514423 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -109,7 +109,7 @@ xfs_bulkstat_one_int(
switch (dic->di_format) {
case XFS_DINODE_FMT_DEV:
- buf->bs_rdev = ip->i_df.if_u2.if_rdev;
+ buf->bs_rdev = sysv_encode_dev(inode->i_rdev);
buf->bs_blksize = BLKDEV_IOSIZE;
buf->bs_blocks = 0;
break;