summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_rmap_item.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-08-03 12:29:32 +1000
committerDave Chinner <david@fromorbit.com>2016-08-03 12:29:32 +1000
commite127fafd1d3c46532903d530dfa69822d3d35d8a (patch)
treedc8180cbf11ad64a2f2cb0998faed4882bed6ebd /fs/xfs/xfs_rmap_item.c
parent722e251770306ee325151b28e40b5d7e5497d687 (diff)
downloadtalos-obmc-linux-e127fafd1d3c46532903d530dfa69822d3d35d8a.tar.gz
talos-obmc-linux-e127fafd1d3c46532903d530dfa69822d3d35d8a.zip
xfs: remove unnecessary parentheses from log redo item recovery functions
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_rmap_item.c')
-rw-r--r--fs/xfs/xfs_rmap_item.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/xfs/xfs_rmap_item.c b/fs/xfs/xfs_rmap_item.c
index 7e4743219430..2500f28689d5 100644
--- a/fs/xfs/xfs_rmap_item.c
+++ b/fs/xfs/xfs_rmap_item.c
@@ -454,7 +454,7 @@ xfs_rui_recover(
* just toss the RUI.
*/
for (i = 0; i < ruip->rui_format.rui_nextents; i++) {
- rmap = &(ruip->rui_format.rui_extents[i]);
+ rmap = &ruip->rui_format.rui_extents[i];
startblock_fsb = XFS_BB_TO_FSB(mp,
XFS_FSB_TO_DADDR(mp, rmap->me_startblock));
switch (rmap->me_flags & XFS_RMAP_EXTENT_TYPE_MASK) {
@@ -469,10 +469,10 @@ xfs_rui_recover(
op_ok = false;
break;
}
- if (!op_ok || (startblock_fsb == 0) ||
- (rmap->me_len == 0) ||
- (startblock_fsb >= mp->m_sb.sb_dblocks) ||
- (rmap->me_len >= mp->m_sb.sb_agblocks) ||
+ if (!op_ok || startblock_fsb == 0 ||
+ rmap->me_len == 0 ||
+ startblock_fsb >= mp->m_sb.sb_dblocks ||
+ rmap->me_len >= mp->m_sb.sb_agblocks ||
(rmap->me_flags & ~XFS_RMAP_EXTENT_FLAGS)) {
/*
* This will pull the RUI from the AIL and
@@ -490,7 +490,7 @@ xfs_rui_recover(
rudp = xfs_trans_get_rud(tp, ruip);
for (i = 0; i < ruip->rui_format.rui_nextents; i++) {
- rmap = &(ruip->rui_format.rui_extents[i]);
+ rmap = &ruip->rui_format.rui_extents[i];
state = (rmap->me_flags & XFS_RMAP_EXTENT_UNWRITTEN) ?
XFS_EXT_UNWRITTEN : XFS_EXT_NORM;
whichfork = (rmap->me_flags & XFS_RMAP_EXTENT_ATTR_FORK) ?
OpenPOWER on IntegriCloud