Re: [PATCH] gfs2: Fix wrong error handling in init_gfs2_fs()
From: Bob Peterson
Date: Tue Nov 28 2017 - 08:41:41 EST
----- Original Message -----
| init_gfs2_fs() is calling e.g. calling unregister_shrinker() without
| register_shrinker() when an error occurred during initialization.
| Rename goto labels and call appropriate undo function.
|
| Signed-off-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>
| ---
| fs/gfs2/main.c | 90
| ++++++++++++++++++++++++++++------------------------------
| 1 file changed, 44 insertions(+), 46 deletions(-)
Hi,
ACK.
Thanks; this is a nice cleanup.
This is now pushed to the for-next branch of the linux-gfs2 tree:
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/?h=for-next&id=8b0d7f56b97b95a442b6785027a0f80ad1ea54af
Regards,
Bob Peterson
Red Hat File Systems