aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <[email protected]>2021-02-09 17:32:32 +0000
committerAndreas Gruenbacher <[email protected]>2021-02-10 08:51:06 +0000
commit7009fa9cd9a5262944b30eb7efb1f0561d074b68 (patch)
tree1365088f922801b04d00c9948ec15f55ee59ba0f /fs/ext4/fast_commit.c
parentgfs2: Add trusted xattr support (diff)
downloadkernel-7009fa9cd9a5262944b30eb7efb1f0561d074b68.tar.gz
kernel-7009fa9cd9a5262944b30eb7efb1f0561d074b68.zip
gfs2: Recursive gfs2_quota_hold in gfs2_iomap_end
When starting an iomap write, gfs2_quota_lock_check -> gfs2_quota_lock -> gfs2_quota_hold is called from gfs2_iomap_begin. At the end of the write, before unlocking the quotas, punch_hole -> gfs2_quota_hold can be called again in gfs2_iomap_end, which is incorrect and leads to a failed assertion. Instead, move the call to gfs2_quota_unlock before the call to punch_hole to fix that. Fixes: 64bc06bb32ee ("gfs2: iomap buffered write support") Cc: [email protected] # v4.19+ Signed-off-by: Andreas Gruenbacher <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions