btrfs: use ERRNO_IS_NOT_SUPPORTED() where appropriate

This commit is contained in:
Lennart Poettering
2023-08-16 12:12:07 +02:00
parent f5254d0047
commit 33b2da2d5b

View File

@@ -88,7 +88,7 @@ int btrfs_subvol_make_fallback(int dir_fd, const char *path, mode_t mode) {
if (r >= 0)
return 1; /* subvol worked */
if (r != -ENOTTY)
if (!ERRNO_IS_NOT_SUPPORTED(r))
return r;
if (mkdirat(dir_fd, path, mode) < 0)