diff options
| author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-07-25 15:52:32 -0400 |
|---|---|---|
| committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-07-26 13:15:16 -0400 |
| commit | 44a8736bd20a08e1adbf479d11f8198a1243958d (patch) | |
| tree | 8a5fb95064b3c5d81bf1907d1a34434c2f7c62bd /fs/xfs/xfs_rtalloc.c | |
| parent | 89c3e8cf3c266d61347abcc412b9330d81da794b (diff) | |
xfs: clean up IRELE/iput callsites
Replace the IRELE macro with a proper function so that we can do proper
typechecking and so that we can stop open-coding iput in scrub, which
means that we'll be able to ftrace inode lifetimes going through scrub
correctly.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
| -rw-r--r-- | fs/xfs/xfs_rtalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index 86d7d2f76226..926ed314ffba 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c | |||
| @@ -1207,7 +1207,7 @@ xfs_rtmount_inodes( | |||
| 1207 | ASSERT(sbp->sb_rsumino != NULLFSINO); | 1207 | ASSERT(sbp->sb_rsumino != NULLFSINO); |
| 1208 | error = xfs_iget(mp, NULL, sbp->sb_rsumino, 0, 0, &mp->m_rsumip); | 1208 | error = xfs_iget(mp, NULL, sbp->sb_rsumino, 0, 0, &mp->m_rsumip); |
| 1209 | if (error) { | 1209 | if (error) { |
| 1210 | IRELE(mp->m_rbmip); | 1210 | xfs_irele(mp->m_rbmip); |
| 1211 | return error; | 1211 | return error; |
| 1212 | } | 1212 | } |
| 1213 | ASSERT(mp->m_rsumip != NULL); | 1213 | ASSERT(mp->m_rsumip != NULL); |
| @@ -1219,9 +1219,9 @@ xfs_rtunmount_inodes( | |||
| 1219 | struct xfs_mount *mp) | 1219 | struct xfs_mount *mp) |
| 1220 | { | 1220 | { |
| 1221 | if (mp->m_rbmip) | 1221 | if (mp->m_rbmip) |
| 1222 | IRELE(mp->m_rbmip); | 1222 | xfs_irele(mp->m_rbmip); |
| 1223 | if (mp->m_rsumip) | 1223 | if (mp->m_rsumip) |
| 1224 | IRELE(mp->m_rsumip); | 1224 | xfs_irele(mp->m_rsumip); |
| 1225 | } | 1225 | } |
| 1226 | 1226 | ||
| 1227 | /* | 1227 | /* |
