]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common: Move exit related functions to a common/exit
authorNirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Wed, 30 Apr 2025 12:45:22 +0000 (12:45 +0000)
committerZorro Lang <zlang@kernel.org>
Tue, 6 May 2025 09:27:57 +0000 (17:27 +0800)
commit7446236447e5ef8a659e325b96dc826724275675
tree4fe555942139e19f2875918267ffffc11a30e5ab
parent008ffc6232320acf3699a4868b0aabaa3caa7934
common: Move exit related functions to a common/exit

Introduce a new file common/exit that will contain all the exit
related functions. This will remove the dependencies these functions
have on other non-related helper files and they can be indepedently
sourced. This was suggested by Dave Chinner[1].
While moving the exit related functions, remove _die() and die_now()
and replace die_now with _fatal(). It is of no use to keep the
unnecessary wrappers.

[1] https://lore.kernel.org/linux-xfs/Z_UJ7XcpmtkPRhTr@dread.disaster.area/

Suggested-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Nirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
check
common/config
common/exit [new file with mode: 0644]
common/preamble
common/punch
common/rc