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 a17cd29e7a
commit fe472057b1

View File

@@ -658,7 +658,9 @@ static bool should_umount(struct path *path)
static void ksu_path_umount(const char *mnt, struct path *path, int flags)
{
int ret = path_umount(path, flags);
#ifdef CONFIG_KSU_DEBUG
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))
#else
@@ -685,7 +687,7 @@ static void ksu_sys_umount(const char *mnt, int flags)
ksu_sys_umount(mnt, flags); \
})
#endif
#endif
static void try_umount(const char *mnt, bool check_mnt, int flags)
{