Add a new helper `_fixed_by_fs_commit` eliminating the if [ $FSTYP = fs ] && _fixed_by_kernel_commit XXXX YYYY pattern. Signed-off-by: Johannes Thumshirn --- common/rc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/rc b/common/rc index c3cdc220a29b..7adc53045be0 100644 --- a/common/rc +++ b/common/rc @@ -1898,6 +1898,15 @@ _fixed_by_kernel_commit() _fixed_by_git_commit kernel $* } +_fixed_by_fs_commit() +{ + local fstyp=$1 + shift + + [ "$fstyp" = "$FSTYP" ] && \ + _fixed_by_kernel_commit $* +} + # Compare with _fixed_by_* helpers, this helper is used for test cases # are not regression tests, e.g. functional tests or maintainer tests, # this helper suggests git commits that should be applied to source trees -- 2.53.0