]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: Use xfs set and clear mp state helpers
authorJohn Garry <john.g.garry@oracle.com>
Wed, 10 Jul 2024 10:31:19 +0000 (10:31 +0000)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 3 Sep 2024 04:37:39 +0000 (10:07 +0530)
commitca57120dfe2790a90fbafa3f7ced9c39d94d4698
tree2630e3d871fded253baecf763de80c6b4769cb44
parent9372dce08b346796b00239422fbb153e79bccead
xfs: Use xfs set and clear mp state helpers

Use the set and clear mp state helpers instead of open-coding.

It is noted that in some instances calls to atomic operation set_bit() and
clear_bit() are being replaced with test_and_set_bit() and
test_and_clear_bit(), respectively, as there is no specific helpers for
set_bit() and clear_bit() only. However should be ok, as we are just
ignoring the returned value from those "test" variants.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_fsops.c
fs/xfs/xfs_log.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_super.c