Commit 8251e3b0 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Greg Kroah-Hartman
Browse files

gfs2: qd_check_sync cleanups



[ Upstream commit 59ebc332 ]

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: default avatarAndreas Gruenbacher <agruenba@redhat.com>
Stable-dep-of: 4b4b6374 ("gfs2: Revert "ignore negated quota changes"")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e51c5aff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment