diff options
| author | Adrian Bunk <bunk@r063144.stusta.swh.mhn.de> | 2006-03-20 20:30:36 +0300 | 
|---|---|---|
| committer | Adrian Bunk <bunk@r063144.stusta.swh.mhn.de> | 2006-03-20 20:30:36 +0300 | 
| commit | 0f76ee451484d02c7405d92e7bceb39b415abb01 (patch) | |
| tree | 9722f84281f786ba48971dde057f5171a49969e4 /fs/xfs/xfs_rtalloc.c | |
| parent | 01d206a7c1167639f6ca6dac22140fbdca017558 (diff) | |
| parent | 7705a8792b0fc82fd7d4dd923724606bbfd9fb20 (diff) | |
| download | linux-0f76ee451484d02c7405d92e7bceb39b415abb01.tar.xz | |
Merge with git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
| -rw-r--r-- | fs/xfs/xfs_rtalloc.c | 29 | 
1 files changed, 14 insertions, 15 deletions
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index 06fc061c50fc..5b413946b1c5 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c @@ -130,7 +130,8 @@ xfs_growfs_rt_alloc(  		/*  		 * 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;  		XFS_BMAP_INIT(&flist, &firstblock);  		/* @@ -170,8 +171,8 @@ xfs_growfs_rt_alloc(  			/*  			 * Lock the bitmap 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;  			/*  			 * Get a buffer for the block. @@ -2023,8 +2024,8 @@ xfs_growfs_rt(  		/*  		 * Lock out other callers by grabbing the bitmap inode lock.  		 */ -		if ((error = xfs_trans_iget(mp, tp, 0, mp->m_sb.sb_rbmino, -				XFS_ILOCK_EXCL, &ip))) +		if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, +						XFS_ILOCK_EXCL, &ip)))  			goto error_exit;  		ASSERT(ip == mp->m_rbmip);  		/* @@ -2037,8 +2038,8 @@ xfs_growfs_rt(  		/*  		 * Get the summary inode into the transaction.  		 */ -		if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rsumino, -				0, XFS_ILOCK_EXCL, &ip))) +		if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rsumino, 0, +						XFS_ILOCK_EXCL, &ip)))  			goto error_exit;  		ASSERT(ip == mp->m_rsumip);  		/* @@ -2158,10 +2159,9 @@ xfs_rtallocate_extent(  	/*  	 * 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) { +	if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, +					XFS_ILOCK_EXCL, &ip)))  		return error; -	}  	sumbp = NULL;  	/*  	 * Allocate by size, or near another block, or exactly at some block. @@ -2221,10 +2221,9 @@ xfs_rtfree_extent(  	/*  	 * Synchronize by locking the bitmap inode.  	 */ -	error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, XFS_ILOCK_EXCL, &ip); -	if (error) { +	if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, +					XFS_ILOCK_EXCL, &ip)))  		return error; -	}  #if defined(__KERNEL__) && defined(DEBUG)  	/*  	 * Check to see that this whole range is currently allocated. @@ -2365,8 +2364,8 @@ xfs_rtpick_extent(  	__uint64_t	seq;		/* sequence number of file creation */  	__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) +	if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, +					XFS_ILOCK_EXCL, &ip)))  		return error;  	ASSERT(ip == mp->m_rbmip);  	seqp = (__uint64_t *)&ip->i_d.di_atime;  | 
