Commit a0e959d3 authored by Dave Chinner's avatar Dave Chinner Committed by Darrick J. Wong

xfs: remove unnecessary indenting from xfs_attr3_leaf_getvalue

Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-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 728bcaa3
...@@ -2391,24 +2391,25 @@ xfs_attr3_leaf_getvalue( ...@@ -2391,24 +2391,25 @@ xfs_attr3_leaf_getvalue(
} }
args->valuelen = valuelen; args->valuelen = valuelen;
memcpy(args->value, &name_loc->nameval[args->namelen], valuelen); memcpy(args->value, &name_loc->nameval[args->namelen], valuelen);
} else { return 0;
name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); }
ASSERT(name_rmt->namelen == args->namelen);
ASSERT(memcmp(args->name, name_rmt->name, args->namelen) == 0); name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index);
args->rmtvaluelen = be32_to_cpu(name_rmt->valuelen); ASSERT(name_rmt->namelen == args->namelen);
args->rmtblkno = be32_to_cpu(name_rmt->valueblk); ASSERT(memcmp(args->name, name_rmt->name, args->namelen) == 0);
args->rmtblkcnt = xfs_attr3_rmt_blocks(args->dp->i_mount, args->rmtvaluelen = be32_to_cpu(name_rmt->valuelen);
args->rmtvaluelen); args->rmtblkno = be32_to_cpu(name_rmt->valueblk);
if (args->flags & ATTR_KERNOVAL) { args->rmtblkcnt = xfs_attr3_rmt_blocks(args->dp->i_mount,
args->valuelen = args->rmtvaluelen; args->rmtvaluelen);
return 0; if (args->flags & ATTR_KERNOVAL) {
} args->valuelen = args->rmtvaluelen;
if (args->valuelen < args->rmtvaluelen) { return 0;
args->valuelen = args->rmtvaluelen; }
return -ERANGE; if (args->valuelen < args->rmtvaluelen) {
}
args->valuelen = args->rmtvaluelen; args->valuelen = args->rmtvaluelen;
return -ERANGE;
} }
args->valuelen = args->rmtvaluelen;
return 0; return 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