Commit e5b23740 authored by Kaixu Xia's avatar Kaixu Xia Committed by Darrick J. Wong

xfs: fix the indent in xfs_trans_mod_dquot

The formatting is strange in xfs_trans_mod_dquot, so do a reindent.
Signed-off-by: default avatarKaixu Xia <kaixuxia@tencent.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 97611f93
...@@ -221,36 +221,27 @@ xfs_trans_mod_dquot( ...@@ -221,36 +221,27 @@ xfs_trans_mod_dquot(
} }
switch (field) { 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; qtrx->qt_blk_res += delta;
break; break;
/* /* inode reservation */
* inode reservation case XFS_TRANS_DQ_RES_INOS:
*/
case XFS_TRANS_DQ_RES_INOS:
qtrx->qt_ino_res += delta; qtrx->qt_ino_res += delta;
break; break;
/* /* disk blocks used. */
* disk blocks used. case XFS_TRANS_DQ_BCOUNT:
*/
case XFS_TRANS_DQ_BCOUNT:
qtrx->qt_bcount_delta += delta; qtrx->qt_bcount_delta += delta;
break; break;
case XFS_TRANS_DQ_DELBCOUNT: case XFS_TRANS_DQ_DELBCOUNT:
qtrx->qt_delbcnt_delta += delta; qtrx->qt_delbcnt_delta += delta;
break; break;
/* /* Inode Count */
* Inode Count case XFS_TRANS_DQ_ICOUNT:
*/
case XFS_TRANS_DQ_ICOUNT:
if (qtrx->qt_ino_res && delta > 0) { if (qtrx->qt_ino_res && delta > 0) {
qtrx->qt_ino_res_used += delta; qtrx->qt_ino_res_used += delta;
ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used); ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used);
...@@ -258,17 +249,13 @@ xfs_trans_mod_dquot( ...@@ -258,17 +249,13 @@ xfs_trans_mod_dquot(
qtrx->qt_icount_delta += delta; qtrx->qt_icount_delta += delta;
break; break;
/* /* rtblk reservation */
* rtblk reservation case XFS_TRANS_DQ_RES_RTBLKS:
*/
case XFS_TRANS_DQ_RES_RTBLKS:
qtrx->qt_rtblk_res += delta; qtrx->qt_rtblk_res += delta;
break; break;
/* /* rtblk count */
* rtblk count case XFS_TRANS_DQ_RTBCOUNT:
*/
case XFS_TRANS_DQ_RTBCOUNT:
if (qtrx->qt_rtblk_res && delta > 0) { if (qtrx->qt_rtblk_res && delta > 0) {
qtrx->qt_rtblk_res_used += delta; qtrx->qt_rtblk_res_used += delta;
ASSERT(qtrx->qt_rtblk_res >= qtrx->qt_rtblk_res_used); ASSERT(qtrx->qt_rtblk_res >= qtrx->qt_rtblk_res_used);
...@@ -276,11 +263,11 @@ xfs_trans_mod_dquot( ...@@ -276,11 +263,11 @@ xfs_trans_mod_dquot(
qtrx->qt_rtbcount_delta += delta; qtrx->qt_rtbcount_delta += delta;
break; break;
case XFS_TRANS_DQ_DELRTBCOUNT: case XFS_TRANS_DQ_DELRTBCOUNT:
qtrx->qt_delrtb_delta += delta; qtrx->qt_delrtb_delta += delta;
break; break;
default: default:
ASSERT(0); ASSERT(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment