Loading fs/xfs/xfs_rtalloc.c +14 −15 Original line number Original line Diff line number Diff line Loading @@ -130,7 +130,8 @@ xfs_growfs_rt_alloc( /* /* * Lock the inode. * Lock the inode. */ */ if ((error = xfs_trans_iget(mp, tp, ino, 0, XFS_ILOCK_EXCL, &ip))) if ((error = xfs_trans_iget(mp, tp, ino, 0, XFS_ILOCK_EXCL, &ip))) goto error_exit; goto error_exit; XFS_BMAP_INIT(&flist, &firstblock); XFS_BMAP_INIT(&flist, &firstblock); /* /* Loading Loading @@ -170,8 +171,8 @@ xfs_growfs_rt_alloc( /* /* * Lock the bitmap inode. * Lock the bitmap inode. */ */ if ((error = xfs_trans_iget(mp, tp, ino, 0, XFS_ILOCK_EXCL, if ((error = xfs_trans_iget(mp, tp, ino, 0, &ip))) XFS_ILOCK_EXCL, &ip))) goto error_exit; goto error_exit; /* /* * Get a buffer for the block. * Get a buffer for the block. Loading Loading @@ -2023,7 +2024,7 @@ xfs_growfs_rt( /* /* * Lock out other callers by grabbing the bitmap inode lock. * Lock out other callers by grabbing the bitmap inode lock. */ */ if ((error = xfs_trans_iget(mp, tp, 0, mp->m_sb.sb_rbmino, if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, XFS_ILOCK_EXCL, &ip))) XFS_ILOCK_EXCL, &ip))) goto error_exit; goto error_exit; ASSERT(ip == mp->m_rbmip); ASSERT(ip == mp->m_rbmip); Loading @@ -2037,8 +2038,8 @@ xfs_growfs_rt( /* /* * Get the summary inode into the transaction. * Get the summary inode into the transaction. */ */ if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rsumino, if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rsumino, 0, 0, XFS_ILOCK_EXCL, &ip))) XFS_ILOCK_EXCL, &ip))) goto error_exit; goto error_exit; ASSERT(ip == mp->m_rsumip); ASSERT(ip == mp->m_rsumip); /* /* Loading Loading @@ -2158,10 +2159,9 @@ xfs_rtallocate_extent( /* /* * Lock out other callers by grabbing the bitmap inode lock. * Lock out other callers by grabbing the bitmap inode lock. */ */ error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, XFS_ILOCK_EXCL, &ip); if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, if (error) { XFS_ILOCK_EXCL, &ip))) return error; return error; } sumbp = NULL; sumbp = NULL; /* /* * Allocate by size, or near another block, or exactly at some block. * Allocate by size, or near another block, or exactly at some block. Loading Loading @@ -2221,10 +2221,9 @@ xfs_rtfree_extent( /* /* * Synchronize by locking the bitmap inode. * Synchronize by locking the bitmap inode. */ */ error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, XFS_ILOCK_EXCL, &ip); if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, if (error) { XFS_ILOCK_EXCL, &ip))) return error; return error; } #if defined(__KERNEL__) && defined(DEBUG) #if defined(__KERNEL__) && defined(DEBUG) /* /* * Check to see that this whole range is currently allocated. * Check to see that this whole range is currently allocated. Loading Loading @@ -2365,8 +2364,8 @@ xfs_rtpick_extent( __uint64_t seq; /* sequence number of file creation */ __uint64_t seq; /* sequence number of file creation */ __uint64_t *seqp; /* pointer to seqno in inode */ __uint64_t *seqp; /* pointer to seqno in inode */ error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, XFS_ILOCK_EXCL, &ip); if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, if (error) XFS_ILOCK_EXCL, &ip))) return error; return error; ASSERT(ip == mp->m_rbmip); ASSERT(ip == mp->m_rbmip); seqp = (__uint64_t *)&ip->i_d.di_atime; seqp = (__uint64_t *)&ip->i_d.di_atime; Loading Loading
fs/xfs/xfs_rtalloc.c +14 −15 Original line number Original line Diff line number Diff line Loading @@ -130,7 +130,8 @@ xfs_growfs_rt_alloc( /* /* * Lock the inode. * Lock the inode. */ */ if ((error = xfs_trans_iget(mp, tp, ino, 0, XFS_ILOCK_EXCL, &ip))) if ((error = xfs_trans_iget(mp, tp, ino, 0, XFS_ILOCK_EXCL, &ip))) goto error_exit; goto error_exit; XFS_BMAP_INIT(&flist, &firstblock); XFS_BMAP_INIT(&flist, &firstblock); /* /* Loading Loading @@ -170,8 +171,8 @@ xfs_growfs_rt_alloc( /* /* * Lock the bitmap inode. * Lock the bitmap inode. */ */ if ((error = xfs_trans_iget(mp, tp, ino, 0, XFS_ILOCK_EXCL, if ((error = xfs_trans_iget(mp, tp, ino, 0, &ip))) XFS_ILOCK_EXCL, &ip))) goto error_exit; goto error_exit; /* /* * Get a buffer for the block. * Get a buffer for the block. Loading Loading @@ -2023,7 +2024,7 @@ xfs_growfs_rt( /* /* * Lock out other callers by grabbing the bitmap inode lock. * Lock out other callers by grabbing the bitmap inode lock. */ */ if ((error = xfs_trans_iget(mp, tp, 0, mp->m_sb.sb_rbmino, if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, XFS_ILOCK_EXCL, &ip))) XFS_ILOCK_EXCL, &ip))) goto error_exit; goto error_exit; ASSERT(ip == mp->m_rbmip); ASSERT(ip == mp->m_rbmip); Loading @@ -2037,8 +2038,8 @@ xfs_growfs_rt( /* /* * Get the summary inode into the transaction. * Get the summary inode into the transaction. */ */ if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rsumino, if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rsumino, 0, 0, XFS_ILOCK_EXCL, &ip))) XFS_ILOCK_EXCL, &ip))) goto error_exit; goto error_exit; ASSERT(ip == mp->m_rsumip); ASSERT(ip == mp->m_rsumip); /* /* Loading Loading @@ -2158,10 +2159,9 @@ xfs_rtallocate_extent( /* /* * Lock out other callers by grabbing the bitmap inode lock. * Lock out other callers by grabbing the bitmap inode lock. */ */ error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, XFS_ILOCK_EXCL, &ip); if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, if (error) { XFS_ILOCK_EXCL, &ip))) return error; return error; } sumbp = NULL; sumbp = NULL; /* /* * Allocate by size, or near another block, or exactly at some block. * Allocate by size, or near another block, or exactly at some block. Loading Loading @@ -2221,10 +2221,9 @@ xfs_rtfree_extent( /* /* * Synchronize by locking the bitmap inode. * Synchronize by locking the bitmap inode. */ */ error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, XFS_ILOCK_EXCL, &ip); if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, if (error) { XFS_ILOCK_EXCL, &ip))) return error; return error; } #if defined(__KERNEL__) && defined(DEBUG) #if defined(__KERNEL__) && defined(DEBUG) /* /* * Check to see that this whole range is currently allocated. * Check to see that this whole range is currently allocated. Loading Loading @@ -2365,8 +2364,8 @@ xfs_rtpick_extent( __uint64_t seq; /* sequence number of file creation */ __uint64_t seq; /* sequence number of file creation */ __uint64_t *seqp; /* pointer to seqno in inode */ __uint64_t *seqp; /* pointer to seqno in inode */ error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, XFS_ILOCK_EXCL, &ip); if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, if (error) XFS_ILOCK_EXCL, &ip))) return error; return error; ASSERT(ip == mp->m_rbmip); ASSERT(ip == mp->m_rbmip); seqp = (__uint64_t *)&ip->i_d.di_atime; seqp = (__uint64_t *)&ip->i_d.di_atime; Loading