]> git.itanic.dy.fi Git - linux-stable/commit
xfs: clean up FS_XFLAG_REALTIME handling in xfs_ioctl_setattr_xflags
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Oct 2023 14:10:19 +0000 (16:10 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 20 Nov 2023 14:05:18 +0000 (15:05 +0100)
commitc421df0b19430417a04f68919fc3d1943d20ac04
tree3796a5453cef5223750624f950e7fe8ad6b97d43
parent1898efcdbed32bb1c67269c985a50bab0dbc9493
xfs: clean up FS_XFLAG_REALTIME handling in xfs_ioctl_setattr_xflags

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>
fs/xfs/xfs_ioctl.c