diff options
author | Bob Peterson <rpeterso@redhat.com> | 2020-12-22 23:43:27 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-25 11:04:14 +0300 |
commit | 49787b1bba1ff63c691d25c108a61c5361f60b5f (patch) | |
tree | 08b89921c2d4a63360922703efab9defcff1c7c7 /fs/hugetlbfs | |
parent | db37238f3452f8034f7abc3ab84edd8749faa201 (diff) | |
download | linux-49787b1bba1ff63c691d25c108a61c5361f60b5f.tar.xz |
gfs2: Add common helper for holding and releasing the freeze glock
[ Upstream commit c77b52c0a137994ad796f44544c802b0b766e496 ]
Many places in the gfs2 code queued and dequeued the freeze glock.
Almost all of them acquire it in SHARED mode, and need to specify the
same LM_FLAG_NOEXP and GL_EXACT flags.
This patch adds common helper functions gfs2_freeze_lock and gfs2_freeze_unlock
to make the code more readable, and to prepare for the next patch.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/hugetlbfs')
0 files changed, 0 insertions, 0 deletions