tree-wide: statx() supports STATX_ATTR_MOUNT_ROOT since kernel 5.8

Our baseline on kernel is 5.10, hence we can unconditionally use it.
This commit is contained in:
Yu Watanabe
2026-01-13 10:21:04 +09:00
parent ec21e5c58e
commit a98a6eb95c
5 changed files with 38 additions and 177 deletions
+2
View File
@@ -117,3 +117,5 @@ static inline bool inode_type_can_hardlink(mode_t m) {
* type). */
return IN_SET(m & S_IFMT, S_IFSOCK, S_IFLNK, S_IFREG, S_IFBLK, S_IFCHR, S_IFIFO);
}
int statx_warn_mount_root(const struct statx *sx, int log_level);