Skip to content

Commit 8d077f5

Browse files
Eric Sandeendjwong
authored andcommitted
xfs: fix up some whitespace in quota code
There is a fair bit of whitespace damage in the quota code, so fix up enough of it that subsequent patches are restricted to functional change to aid review. Signed-off-by: Eric Sandeen <[email protected]> Reviewed-by: Allison Collins <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent dcf1ccc commit 8d077f5

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

fs/xfs/xfs_qm.h

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,41 +42,41 @@ extern struct kmem_zone *xfs_qm_dqtrxzone;
4242
#define XFS_DQUOT_CLUSTER_SIZE_FSB (xfs_filblks_t)1
4343

4444
struct xfs_def_quota {
45-
xfs_qcnt_t bhardlimit; /* default data blk hard limit */
46-
xfs_qcnt_t bsoftlimit; /* default data blk soft limit */
47-
xfs_qcnt_t ihardlimit; /* default inode count hard limit */
48-
xfs_qcnt_t isoftlimit; /* default inode count soft limit */
49-
xfs_qcnt_t rtbhardlimit; /* default realtime blk hard limit */
50-
xfs_qcnt_t rtbsoftlimit; /* default realtime blk soft limit */
45+
xfs_qcnt_t bhardlimit; /* default data blk hard limit */
46+
xfs_qcnt_t bsoftlimit; /* default data blk soft limit */
47+
xfs_qcnt_t ihardlimit; /* default inode count hard limit */
48+
xfs_qcnt_t isoftlimit; /* default inode count soft limit */
49+
xfs_qcnt_t rtbhardlimit; /* default realtime blk hard limit */
50+
xfs_qcnt_t rtbsoftlimit; /* default realtime blk soft limit */
5151
};
5252

5353
/*
5454
* Various quota information for individual filesystems.
5555
* The mount structure keeps a pointer to this.
5656
*/
5757
struct xfs_quotainfo {
58-
struct radix_tree_root qi_uquota_tree;
59-
struct radix_tree_root qi_gquota_tree;
60-
struct radix_tree_root qi_pquota_tree;
61-
struct mutex qi_tree_lock;
58+
struct radix_tree_root qi_uquota_tree;
59+
struct radix_tree_root qi_gquota_tree;
60+
struct radix_tree_root qi_pquota_tree;
61+
struct mutex qi_tree_lock;
6262
struct xfs_inode *qi_uquotaip; /* user quota inode */
6363
struct xfs_inode *qi_gquotaip; /* group quota inode */
6464
struct xfs_inode *qi_pquotaip; /* project quota inode */
65-
struct list_lru qi_lru;
66-
int qi_dquots;
67-
time64_t qi_btimelimit; /* limit for blks timer */
68-
time64_t qi_itimelimit; /* limit for inodes timer */
69-
time64_t qi_rtbtimelimit;/* limit for rt blks timer */
70-
xfs_qwarncnt_t qi_bwarnlimit; /* limit for blks warnings */
71-
xfs_qwarncnt_t qi_iwarnlimit; /* limit for inodes warnings */
72-
xfs_qwarncnt_t qi_rtbwarnlimit;/* limit for rt blks warnings */
73-
struct mutex qi_quotaofflock;/* to serialize quotaoff */
74-
xfs_filblks_t qi_dqchunklen; /* # BBs in a chunk of dqs */
75-
uint qi_dqperchunk; /* # ondisk dqs in above chunk */
65+
struct list_lru qi_lru;
66+
int qi_dquots;
67+
time64_t qi_btimelimit; /* limit for blks timer */
68+
time64_t qi_itimelimit; /* limit for inodes timer */
69+
time64_t qi_rtbtimelimit;/* limit for rt blks timer */
70+
xfs_qwarncnt_t qi_bwarnlimit; /* limit for blks warnings */
71+
xfs_qwarncnt_t qi_iwarnlimit; /* limit for inodes warnings */
72+
xfs_qwarncnt_t qi_rtbwarnlimit;/* limit for rt blks warnings */
73+
struct mutex qi_quotaofflock;/* to serialize quotaoff */
74+
xfs_filblks_t qi_dqchunklen; /* # BBs in a chunk of dqs */
75+
uint qi_dqperchunk; /* # ondisk dq in above chunk */
7676
struct xfs_def_quota qi_usr_default;
7777
struct xfs_def_quota qi_grp_default;
7878
struct xfs_def_quota qi_prj_default;
79-
struct shrinker qi_shrinker;
79+
struct shrinker qi_shrinker;
8080
};
8181

8282
static inline struct radix_tree_root *

fs/xfs/xfs_quotaops.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ xfs_qm_fill_state(
2323
struct xfs_inode *ip,
2424
xfs_ino_t ino)
2525
{
26-
struct xfs_quotainfo *q = mp->m_quotainfo;
27-
bool tempqip = false;
26+
struct xfs_quotainfo *q = mp->m_quotainfo;
27+
bool tempqip = false;
2828

2929
tstate->ino = ino;
3030
if (!ip && ino == NULLFSINO)
@@ -109,8 +109,8 @@ xfs_fs_set_info(
109109
int type,
110110
struct qc_info *info)
111111
{
112-
struct xfs_mount *mp = XFS_M(sb);
113-
struct qc_dqblk newlim;
112+
struct xfs_mount *mp = XFS_M(sb);
113+
struct qc_dqblk newlim;
114114

115115
if (sb_rdonly(sb))
116116
return -EROFS;

0 commit comments

Comments
 (0)