Commit 88aa5de4 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

xfs: trivial sparse fixes for the new scrub code

[darrick: fix broken initializer in xfs_scrub_xattr]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent fc41e2a1
...@@ -91,7 +91,7 @@ xfs_scrub_xattr_listent( ...@@ -91,7 +91,7 @@ xfs_scrub_xattr_listent(
int valuelen) int valuelen)
{ {
struct xfs_scrub_xattr *sx; struct xfs_scrub_xattr *sx;
struct xfs_da_args args = {0}; struct xfs_da_args args = { NULL };
int error = 0; int error = 0;
sx = container_of(context, struct xfs_scrub_xattr, context); sx = container_of(context, struct xfs_scrub_xattr, context);
...@@ -420,7 +420,7 @@ int ...@@ -420,7 +420,7 @@ int
xfs_scrub_xattr( xfs_scrub_xattr(
struct xfs_scrub_context *sc) struct xfs_scrub_context *sc)
{ {
struct xfs_scrub_xattr sx = { 0 }; struct xfs_scrub_xattr sx;
struct attrlist_cursor_kern cursor = { 0 }; struct attrlist_cursor_kern cursor = { 0 };
xfs_dablk_t last_checked = -1U; xfs_dablk_t last_checked = -1U;
int error = 0; int error = 0;
......
...@@ -229,7 +229,7 @@ xfs_scrub_bmap( ...@@ -229,7 +229,7 @@ xfs_scrub_bmap(
int whichfork) int whichfork)
{ {
struct xfs_bmbt_irec irec; struct xfs_bmbt_irec irec;
struct xfs_scrub_bmap_info info = {0}; struct xfs_scrub_bmap_info info = { NULL };
struct xfs_mount *mp = sc->mp; struct xfs_mount *mp = sc->mp;
struct xfs_inode *ip = sc->ip; struct xfs_inode *ip = sc->ip;
struct xfs_ifork *ifp; struct xfs_ifork *ifp;
......
...@@ -414,7 +414,7 @@ xfs_scrub_btree( ...@@ -414,7 +414,7 @@ xfs_scrub_btree(
struct xfs_owner_info *oinfo, struct xfs_owner_info *oinfo,
void *private) void *private)
{ {
struct xfs_scrub_btree bs = {0}; struct xfs_scrub_btree bs = { NULL };
union xfs_btree_ptr ptr; union xfs_btree_ptr ptr;
union xfs_btree_ptr *pp; union xfs_btree_ptr *pp;
union xfs_btree_rec *recp; union xfs_btree_rec *recp;
......
...@@ -560,7 +560,7 @@ xfs_scrub_directory_free_bestfree( ...@@ -560,7 +560,7 @@ xfs_scrub_directory_free_bestfree(
struct xfs_buf *dbp; struct xfs_buf *dbp;
struct xfs_buf *bp; struct xfs_buf *bp;
__be16 *bestp; __be16 *bestp;
__be16 best; __u16 best;
unsigned int stale = 0; unsigned int stale = 0;
int i; int i;
int error; int error;
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
* structure state to decide (in broad terms) if scrub/repair are * structure state to decide (in broad terms) if scrub/repair are
* supported by the running kernel. * supported by the running kernel.
*/ */
int static int
xfs_scrub_probe( xfs_scrub_probe(
struct xfs_scrub_context *sc) struct xfs_scrub_context *sc)
{ {
......
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