]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: qd_check_sync cleanups
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 7 Jun 2024 00:23:54 +0000 (02:23 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Sat, 8 Jun 2024 00:34:56 +0000 (02:34 +0200)
commit59ebc33201237bf38e5adca3794716100660c5b4
tree45f28de868c5f5beba38bd49dc66b95328cfae1b
parent2aedfe847b4d91eabee11a44c27244055cef4eb3
gfs2: qd_check_sync cleanups

Rename qd_check_sync() to qd_grab_sync() and make it return a bool.
Turn the sync_gen pointer into a regular u64 and pass in U64_MAX instead
of a NULL pointer when sync generation checking isn't needed.

Introduce a new qd_ungrab_sync() helper for undoing the effects of
qd_grab_sync() if the subsequent bh_get() on the qd object fails.

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