kernel: guard path_umount logging

* path_umount pretty much guaranteed to work as is, so it would not need
  much logging.

Unlike sys_umount which is an alternative to path_umount for older kernel, so, sys_umount need constant logging.

Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
rsuntk
2025-08-21 19:55:00 +07:00
committed by ShirkNeko
parent 34dd78dd0c
commit d970e45f14

View File

@@ -1153,7 +1153,9 @@ static bool should_umount(struct path *path)
static void ksu_path_umount(const char *mnt, struct path *path, int flags) static void ksu_path_umount(const char *mnt, struct path *path, int flags)
{ {
int ret = path_umount(path, flags); int ret = path_umount(path, flags);
#ifdef CONFIG_KSU_DEBUG
pr_info("%s: path: %s ret: %d\n", __func__, mnt, ret); pr_info("%s: path: %s ret: %d\n", __func__, mnt, ret);
#endif
} }
#define ksu_umount_mnt(mnt, path, flags) (ksu_path_umount(mnt, path, flags)) #define ksu_umount_mnt(mnt, path, flags) (ksu_path_umount(mnt, path, flags))
#else #else