]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
gfs2: eliminate GIF_ORDERED in favor of list_empty
authorBob Peterson <rpeterso@redhat.com>
Wed, 17 Jun 2020 12:47:34 +0000 (07:47 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 3 Jul 2020 10:05:34 +0000 (12:05 +0200)
commit7542486b89b2e321ffe0de82163b425d6a38bc72
tree69dad92b550226ee3e77caf2b141542f8686ef8a
parent34244d711dea568f4a42c5b0d6b3d620f8cb6971
gfs2: eliminate GIF_ORDERED in favor of list_empty

In several places, we used the GIF_ORDERED inode flag to determine
if an inode was on the ordered writes list. However, since we always
held the sd_ordered_lock spin_lock during the manipulation, we can
just as easily check list_empty(&ip->i_ordered) instead.
This allows us to keep more than one ordered writes list to make
journal writing improvements.

This patch eliminates GIF_ORDERED in favor of checking list_empty.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/incore.h
fs/gfs2/log.c
fs/gfs2/log.h
fs/gfs2/main.c