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)
{
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
@@ -1181,7 +1183,7 @@ static void ksu_sys_umount(const char *mnt, int flags)
ksu_sys_umount(mnt, flags); \
})
#endif
#endif
#ifdef CONFIG_KSU_SUSFS_TRY_UMOUNT
void ksu_try_umount(const char *mnt, bool check_mnt, int flags, uid_t uid)