diff mbox series

[v2,2/4] xfs: fix the indent in xfs_trans_mod_dquot

Message ID 1601126073-32453-3-git-send-email-kaixuxia@tencent.com (mailing list archive)
State Superseded, archived
Headers show
Series xfs: random fixes for disk quota | expand

Commit Message

Kaixu Xia Sept. 26, 2020, 1:14 p.m. UTC
From: Kaixu Xia <kaixuxia@tencent.com>

The formatting is strange in xfs_trans_mod_dquot, so do a reindent.

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
---
 fs/xfs/xfs_trans_dquot.c | 43 ++++++++++++++--------------------------
 1 file changed, 15 insertions(+), 28 deletions(-)

Comments

Darrick J. Wong Oct. 6, 2020, 4:36 a.m. UTC | #1
On Sat, Sep 26, 2020 at 09:14:31PM +0800, xiakaixu1987@gmail.com wrote:
> From: Kaixu Xia <kaixuxia@tencent.com>
> 
> The formatting is strange in xfs_trans_mod_dquot, so do a reindent.
> 
> Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>

"strange".  I can just picture the Papyrus font now... :)

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>

--D

> ---
>  fs/xfs/xfs_trans_dquot.c | 43 ++++++++++++++--------------------------
>  1 file changed, 15 insertions(+), 28 deletions(-)
> 
> diff --git a/fs/xfs/xfs_trans_dquot.c b/fs/xfs/xfs_trans_dquot.c
> index 133fc6fc3edd..fe45b0c3970c 100644
> --- a/fs/xfs/xfs_trans_dquot.c
> +++ b/fs/xfs/xfs_trans_dquot.c
> @@ -221,36 +221,27 @@ xfs_trans_mod_dquot(
>  	}
>  
>  	switch (field) {
> -
> -		/*
> -		 * regular disk blk reservation
> -		 */
> -	      case XFS_TRANS_DQ_RES_BLKS:
> +	/* regular disk blk reservation */
> +	case XFS_TRANS_DQ_RES_BLKS:
>  		qtrx->qt_blk_res += delta;
>  		break;
>  
> -		/*
> -		 * inode reservation
> -		 */
> -	      case XFS_TRANS_DQ_RES_INOS:
> +	/* inode reservation */
> +	case XFS_TRANS_DQ_RES_INOS:
>  		qtrx->qt_ino_res += delta;
>  		break;
>  
> -		/*
> -		 * disk blocks used.
> -		 */
> -	      case XFS_TRANS_DQ_BCOUNT:
> +	/* disk blocks used. */
> +	case XFS_TRANS_DQ_BCOUNT:
>  		qtrx->qt_bcount_delta += delta;
>  		break;
>  
> -	      case XFS_TRANS_DQ_DELBCOUNT:
> +	case XFS_TRANS_DQ_DELBCOUNT:
>  		qtrx->qt_delbcnt_delta += delta;
>  		break;
>  
> -		/*
> -		 * Inode Count
> -		 */
> -	      case XFS_TRANS_DQ_ICOUNT:
> +	/* Inode Count */
> +	case XFS_TRANS_DQ_ICOUNT:
>  		if (qtrx->qt_ino_res && delta > 0) {
>  			qtrx->qt_ino_res_used += delta;
>  			ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used);
> @@ -258,17 +249,13 @@ xfs_trans_mod_dquot(
>  		qtrx->qt_icount_delta += delta;
>  		break;
>  
> -		/*
> -		 * rtblk reservation
> -		 */
> -	      case XFS_TRANS_DQ_RES_RTBLKS:
> +	/* rtblk reservation */
> +	case XFS_TRANS_DQ_RES_RTBLKS:
>  		qtrx->qt_rtblk_res += delta;
>  		break;
>  
> -		/*
> -		 * rtblk count
> -		 */
> -	      case XFS_TRANS_DQ_RTBCOUNT:
> +	/* rtblk count */
> +	case XFS_TRANS_DQ_RTBCOUNT:
>  		if (qtrx->qt_rtblk_res && delta > 0) {
>  			qtrx->qt_rtblk_res_used += delta;
>  			ASSERT(qtrx->qt_rtblk_res >= qtrx->qt_rtblk_res_used);
> @@ -276,11 +263,11 @@ xfs_trans_mod_dquot(
>  		qtrx->qt_rtbcount_delta += delta;
>  		break;
>  
> -	      case XFS_TRANS_DQ_DELRTBCOUNT:
> +	case XFS_TRANS_DQ_DELRTBCOUNT:
>  		qtrx->qt_delrtb_delta += delta;
>  		break;
>  
> -	      default:
> +	default:
>  		ASSERT(0);
>  	}
>  
> -- 
> 2.20.0
>
diff mbox series

Patch

diff --git a/fs/xfs/xfs_trans_dquot.c b/fs/xfs/xfs_trans_dquot.c
index 133fc6fc3edd..fe45b0c3970c 100644
--- a/fs/xfs/xfs_trans_dquot.c
+++ b/fs/xfs/xfs_trans_dquot.c
@@ -221,36 +221,27 @@  xfs_trans_mod_dquot(
 	}
 
 	switch (field) {
-
-		/*
-		 * regular disk blk reservation
-		 */
-	      case XFS_TRANS_DQ_RES_BLKS:
+	/* regular disk blk reservation */
+	case XFS_TRANS_DQ_RES_BLKS:
 		qtrx->qt_blk_res += delta;
 		break;
 
-		/*
-		 * inode reservation
-		 */
-	      case XFS_TRANS_DQ_RES_INOS:
+	/* inode reservation */
+	case XFS_TRANS_DQ_RES_INOS:
 		qtrx->qt_ino_res += delta;
 		break;
 
-		/*
-		 * disk blocks used.
-		 */
-	      case XFS_TRANS_DQ_BCOUNT:
+	/* disk blocks used. */
+	case XFS_TRANS_DQ_BCOUNT:
 		qtrx->qt_bcount_delta += delta;
 		break;
 
-	      case XFS_TRANS_DQ_DELBCOUNT:
+	case XFS_TRANS_DQ_DELBCOUNT:
 		qtrx->qt_delbcnt_delta += delta;
 		break;
 
-		/*
-		 * Inode Count
-		 */
-	      case XFS_TRANS_DQ_ICOUNT:
+	/* Inode Count */
+	case XFS_TRANS_DQ_ICOUNT:
 		if (qtrx->qt_ino_res && delta > 0) {
 			qtrx->qt_ino_res_used += delta;
 			ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used);
@@ -258,17 +249,13 @@  xfs_trans_mod_dquot(
 		qtrx->qt_icount_delta += delta;
 		break;
 
-		/*
-		 * rtblk reservation
-		 */
-	      case XFS_TRANS_DQ_RES_RTBLKS:
+	/* rtblk reservation */
+	case XFS_TRANS_DQ_RES_RTBLKS:
 		qtrx->qt_rtblk_res += delta;
 		break;
 
-		/*
-		 * rtblk count
-		 */
-	      case XFS_TRANS_DQ_RTBCOUNT:
+	/* rtblk count */
+	case XFS_TRANS_DQ_RTBCOUNT:
 		if (qtrx->qt_rtblk_res && delta > 0) {
 			qtrx->qt_rtblk_res_used += delta;
 			ASSERT(qtrx->qt_rtblk_res >= qtrx->qt_rtblk_res_used);
@@ -276,11 +263,11 @@  xfs_trans_mod_dquot(
 		qtrx->qt_rtbcount_delta += delta;
 		break;
 
-	      case XFS_TRANS_DQ_DELRTBCOUNT:
+	case XFS_TRANS_DQ_DELRTBCOUNT:
 		qtrx->qt_delrtb_delta += delta;
 		break;
 
-	      default:
+	default:
 		ASSERT(0);
 	}