projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69a6114
)
gfs2: tiny cleanup in gfs2_log_reserve
author
Bob Peterson
<rpeterso@redhat.com>
Wed, 30 Jun 2021 17:49:59 +0000
(12:49 -0500)
committer
Bob Peterson
<rpeterso@redhat.com>
Thu, 19 Aug 2021 17:31:17 +0000
(12:31 -0500)
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>
fs/gfs2/log.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/log.c
b/fs/gfs2/log.c
index 42c15cfc08219f0a2f17d45f00aa2ed362a58901..f0ee3ff6f9a876560e808b9c87b794d984ff6a6b 100644
(file)
--- 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) {