Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 032d91f9 authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: fix indentation and other whitespace problems in scrub/repair



Now that we've shortened everything, fix up all the indentation and
whitespace problems.  There are no functional changes.

Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
parent 1d8a748a
Loading
Loading
Loading
Loading
+86 −86
Original line number Diff line number Diff line
@@ -490,7 +490,7 @@ xchk_btree_get_block(
	struct xfs_btree_block	**pblock,
	struct xfs_buf		**pbp)
{
	void				*failed_at;
	xfs_failaddr_t		failed_at;
	int			error;

	*pblock = NULL;
+12 −13
Original line number Diff line number Diff line
@@ -14,8 +14,7 @@ bool xchk_btree_process_error(struct xfs_scrub *sc,

/* Check for btree xref operation errors. */
bool xchk_btree_xref_process_error(struct xfs_scrub *sc,
				struct xfs_btree_cur *cur, int level,
				int *error);
		struct xfs_btree_cur *cur, int level, int *error);

/* Check for btree corruption. */
void xchk_btree_set_corrupt(struct xfs_scrub *sc,
@@ -46,7 +45,7 @@ struct xchk_btree {
	struct list_head	to_check;
};
int xchk_btree(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
		    xchk_btree_rec_fn scrub_fn,
		    struct xfs_owner_info *oinfo, void *private);
		xchk_btree_rec_fn scrub_fn, struct xfs_owner_info *oinfo,
		void *private);

#endif /* __XFS_SCRUB_BTREE_H__ */
+10 −13
Original line number Diff line number Diff line
@@ -114,18 +114,15 @@ int xchk_ag_read_headers(struct xfs_scrub *sc, xfs_agnumber_t agno,
		struct xfs_buf **agi, struct xfs_buf **agf,
		struct xfs_buf **agfl);
void xchk_ag_btcur_free(struct xchk_ag *sa);
int xchk_ag_btcur_init(struct xfs_scrub *sc,
			    struct xchk_ag *sa);
int xchk_count_rmap_ownedby_ag(struct xfs_scrub *sc,
				    struct xfs_btree_cur *cur,
				    struct xfs_owner_info *oinfo,
				    xfs_filblks_t *blocks);
int xchk_ag_btcur_init(struct xfs_scrub *sc, struct xchk_ag *sa);
int xchk_count_rmap_ownedby_ag(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
		struct xfs_owner_info *oinfo, xfs_filblks_t *blocks);

int xchk_setup_ag_btree(struct xfs_scrub *sc,
			     struct xfs_inode *ip, bool force_log);
int xchk_setup_ag_btree(struct xfs_scrub *sc, struct xfs_inode *ip,
		bool force_log);
int xchk_get_inode(struct xfs_scrub *sc, struct xfs_inode *ip_in);
int xchk_setup_inode_contents(struct xfs_scrub *sc,
				   struct xfs_inode *ip, unsigned int resblks);
int xchk_setup_inode_contents(struct xfs_scrub *sc, struct xfs_inode *ip,
		unsigned int resblks);
void xchk_buffer_recheck(struct xfs_scrub *sc, struct xfs_buf *bp);

/*
+10 −11
Original line number Diff line number Diff line
@@ -37,8 +37,7 @@ bool xchk_da_process_error(struct xchk_da_btree *ds, int level, int *error);
/* Check for da btree corruption. */
void xchk_da_set_corrupt(struct xchk_da_btree *ds, int level);

int xchk_da_btree_hash(struct xchk_da_btree *ds, int level,
			    __be32 *hashp);
int xchk_da_btree_hash(struct xchk_da_btree *ds, int level, __be32 *hashp);
int xchk_da_btree(struct xfs_scrub *sc, int whichfork,
		xchk_da_btree_rec_fn scrub_fn, void *private);

+12 −16
Original line number Diff line number Diff line
@@ -15,16 +15,14 @@ static inline int xrep_notsupported(struct xfs_scrub *sc)

/* Repair helpers */

int xrep_attempt(struct xfs_inode *ip, struct xfs_scrub *sc,
		bool *fixed);
int xrep_attempt(struct xfs_inode *ip, struct xfs_scrub *sc, bool *fixed);
void xrep_failure(struct xfs_mount *mp);
int xrep_roll_ag_trans(struct xfs_scrub *sc);
bool xrep_ag_has_space(struct xfs_perag *pag, xfs_extlen_t nr_blocks,
		enum xfs_ag_resv_type type);
xfs_extlen_t xrep_calc_ag_resblks(struct xfs_scrub *sc);
int xrep_alloc_ag_block(struct xfs_scrub *sc,
		struct xfs_owner_info *oinfo, xfs_fsblock_t *fsbno,
		enum xfs_ag_resv_type resv);
int xrep_alloc_ag_block(struct xfs_scrub *sc, struct xfs_owner_info *oinfo,
		xfs_fsblock_t *fsbno, enum xfs_ag_resv_type resv);
int xrep_init_btblock(struct xfs_scrub *sc, xfs_fsblock_t fsb,
		struct xfs_buf **bpp, xfs_btnum_t btnum,
		const struct xfs_buf_ops *ops);
@@ -78,10 +76,8 @@ struct xrep_find_ag_btree {
	unsigned int			height;
};

int xrep_find_ag_btree_roots(struct xfs_scrub *sc,
		struct xfs_buf *agf_bp,
		struct xrep_find_ag_btree *btree_info,
		struct xfs_buf *agfl_bp);
int xrep_find_ag_btree_roots(struct xfs_scrub *sc, struct xfs_buf *agf_bp,
		struct xrep_find_ag_btree *btree_info, struct xfs_buf *agfl_bp);
void xrep_force_quotacheck(struct xfs_scrub *sc, uint dqtype);
int xrep_ino_dqattach(struct xfs_scrub *sc);

Loading