diff options
author | Christoph Hellwig <hch@lst.de> | 2017-10-19 11:07:09 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-26 15:38:27 -0700 |
commit | 66f364649d870c7541c30a2f02a32fd4c88684f0 (patch) | |
tree | b1609eedc361f36f68f1d492926e4eb4aa6b99dc /fs/xfs/xfs_itable.c | |
parent | 42b67dc6ffbf2701cfc578b3e706d560a80b6674 (diff) | |
download | lwn-66f364649d870c7541c30a2f02a32fd4c88684f0.tar.gz lwn-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.c | 2 |
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; |