gfs2: Use a tighter bound in gfs2_trans_begin
authorAndreas Gruenbacher <agruenba@redhat.com>
Sun, 6 Dec 2020 13:04:36 +0000 (14:04 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 3 Feb 2021 17:37:25 +0000 (18:37 +0100)
commit297de3180dd7ecbb3798f32e58691168587a8f85
tree44d329de72355bc7758dc8bf70da42e6c32d6514
parent5ae8fff8d031b5728f4c0e36e971bba42bb78bea
gfs2: Use a tighter bound in gfs2_trans_begin

Use a tighter bound for the number of blocks required by transactions in
gfs2_trans_begin: in the worst case, we'll have mixed data and metadata,
so we'll need a log desciptor for each type.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/trans.c