Files
linux/fs
Bob Peterson e0c1e6e55b gfs2: clear buf_in_tr when ending a transaction in sweep_bh_for_rgrps
commit f0b444b349 upstream.

In function sweep_bh_for_rgrps, which is a helper for punch_hole,
it uses variable buf_in_tr to keep track of when it needs to commit
pending block frees on a partial delete that overflows the
transaction created for the delete. The problem is that the
variable was initialized at the start of function sweep_bh_for_rgrps
but it was never cleared, even when starting a new transaction.

This patch reinitializes the variable when the transaction is
ended, so the next transaction starts out with it cleared.

Fixes: d552a2b9b3 ("GFS2: Non-recursive delete")
Cc: stable@vger.kernel.org # v4.12+
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-05 13:10:07 +02:00
..
2019-08-06 19:06:51 +02:00
2018-12-17 09:24:41 +01:00
2018-08-17 16:20:28 -07:00
2018-05-22 14:27:52 -04:00
2019-09-21 07:17:02 +02:00
2018-08-17 16:20:27 -07:00
2018-05-22 14:27:52 -04:00
2019-05-02 09:58:59 +02:00
2018-07-03 16:44:45 -04:00
2018-06-05 19:23:26 +02:00
2018-06-11 08:22:34 -07:00