]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: factor out the common lock flags assert
authorKaixu Xia <kaixuxia@tencent.com>
Sun, 19 Jun 2022 21:53:42 +0000 (14:53 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 26 Jun 2022 21:43:28 +0000 (14:43 -0700)
commitaa0ef3274622f077a80d6e7d6f51bc51ab4249f8
tree144c983688248b41a6b6bfa10ca61e7f75e04e26
parent0273efa0e4fd3af71c74a050dd0c6073873ce7ed
xfs: factor out the common lock flags assert

There are similar lock flags assert in xfs_ilock(), xfs_ilock_nowait(),
xfs_iunlock(), thus we can factor it out into a helper that is clear.

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_inode.c