]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: merge the file vs device cases in libxfs_init
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Dec 2023 16:37:32 +0000 (17:37 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 18 Dec 2023 13:57:48 +0000 (14:57 +0100)
commitb6e08bf37ca7b6183b1787d1147576a45fab9c7d
tree056535ab3abf3282acd3ccafccdfd4dd028073ea
parentca8cc76e844a3860db300ca2c60384517afdb674
libxfs: merge the file vs device cases in libxfs_init

The only special handling for an XFS device on a regular file is that
we skip the checks in check_open.  Simplify perform those conditionally
instead of duplicating the entire sequence.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/init.c