diff options
author | Bob Peterson <rpeterso@redhat.com> | 2021-06-30 20:49:59 +0300 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2021-08-19 20:31:17 +0300 |
commit | dc7674eda002037d7a2d551e272037574507c2db (patch) | |
tree | f8b214ef59fba6e0c30124637aff8b6624663eec /fs/gfs2 | |
parent | 69a61144f32b590650af8b5f1e1262f1a731f9c5 (diff) | |
download | linux-dc7674eda002037d7a2d551e272037574507c2db.tar.xz |
gfs2: tiny cleanup in gfs2_log_reserve
Function gfs2_log_reserve was setting revoke_blks to 0. There's no
need because it calculates it shortly thereafter. This patch removes
the unnecessary set.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c index 42c15cfc0821..f0ee3ff6f9a8 100644 --- a/fs/gfs2/log.c +++ b/fs/gfs2/log.c @@ -594,7 +594,7 @@ void gfs2_log_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr, { unsigned int blks = tr->tr_reserved; unsigned int revokes = tr->tr_revokes; - unsigned int revoke_blks = 0; + unsigned int revoke_blks; *extra_revokes = 0; if (revokes) { |