]> git.ipfire.org Git - thirdparty/systemd.git/commit
fd-util: slightly optimize dir_fd_is_root() 27194/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Apr 2023 01:04:25 +0000 (10:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Apr 2023 01:04:46 +0000 (10:04 +0900)
commitb4cb4c5cc6b074f79e317c96930109e6efb8de25
treeacf336b705be5d1ce77a68ba253a528eb7c6cdb2
parenta6ef5ef70726c77e621341b4de12413e1864e934
fd-util: slightly optimize dir_fd_is_root()

When STATX_MNT_ID is not supported, we need to manually obtain mount id.
Let's compare inodes earlier.
src/basic/fd-util.c