]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/gfs2/bmap.c
gfs2: Remove ordered write mode handling from gfs2_trans_add_data
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 4 Jun 2018 12:50:16 +0000 (07:50 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 4 Jun 2018 12:50:16 +0000 (07:50 -0500)
commit845802b112eeedfa32b2ebba694996a49677596e
treee0f4d8f2ad943c67d9e050845cc8c198018f765d
parentd6382a3505d289ec2df55a822f1fd72d9a72d256
gfs2: Remove ordered write mode handling from gfs2_trans_add_data

In journaled data mode, we need to add each buffer head to the current
transaction.  In ordered write mode, we only need to add the inode to
the ordered inode list.  So far, both cases are handled in
gfs2_trans_add_data.  This makes the code look misleading and is
inefficient for small block sizes as well.  Handle both cases separately
instead.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/aops.c
fs/gfs2/bmap.c
fs/gfs2/log.h
fs/gfs2/quota.c
fs/gfs2/trans.c