xfs: clean up FS_XFLAG_REALTIME handling in xfs_ioctl_setattr_xflags
authorChristoph Hellwig <hch@lst.de>
Thu, 8 Feb 2024 23:20:53 +0000 (15:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2024 18:10:46 +0000 (19:10 +0100)
commitd7d5ed65364ce8d2bcbb93b6c9a7edfcdd706bb0
tree1119035ffac241677ad649c45005b7f71366890e
parent3581868f51a2edb027a898988b5b5a4ba379ee55
xfs: clean up FS_XFLAG_REALTIME handling in xfs_ioctl_setattr_xflags

commit c421df0b19430417a04f68919fc3d1943d20ac04 upstream.

Introduce a local boolean variable if FS_XFLAG_REALTIME to make the
checks for it more obvious, and de-densify a few of the conditionals
using it to make them more readable while at it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231025141020.192413-4-hch@lst.de
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Acked-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/xfs_ioctl.c