]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c7d9cf985e3005c2b6634e69b1f37a7bc6f0449
treee0f4d8f2ad943c67d9e050845cc8c198018f765d
parenta7a40931f558821483c5e29ba2838385e03ca17d
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