gfs2: Check for active reservation in gfs2_release
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 21 Oct 2020 14:37:54 +0000 (16:37 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 17 Feb 2021 18:26:05 +0000 (19:26 +0100)
commit0ec9b9ea4f83303bfd8f052a3d8b2bd179b002e1
treea711fbabeadc02e8ced75544e2ec280a31a2cbf0
parentb2598965dc84bbcf8dd54accc80f60820e5d4965
gfs2: Check for active reservation in gfs2_release

In gfs2_release, check if the inode has an active reservation to avoid
unnecessary lock taking.

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