Commit ecfc28a4 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

xfs: cleanup xfs_fsb_to_db

This function isn't a macro anymore, so remove various superflous braces,
and explicit cast that is done implicitly due to the return value, use
a normal if statement instead of trying to squeeze everything together.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent adcb0ca2
...@@ -39,9 +39,9 @@ ...@@ -39,9 +39,9 @@
xfs_daddr_t xfs_daddr_t
xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb) xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb)
{ {
return (XFS_IS_REALTIME_INODE(ip) ? \ if (XFS_IS_REALTIME_INODE(ip))
(xfs_daddr_t)XFS_FSB_TO_BB((ip)->i_mount, (fsb)) : \ return XFS_FSB_TO_BB(ip->i_mount, fsb);
XFS_FSB_TO_DADDR((ip)->i_mount, (fsb))); return XFS_FSB_TO_DADDR(ip->i_mount, fsb);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment