]> git.hungrycats.org Git - linux/commitdiff
btrfs: bump LOGICAL_INO_V2 size limit to 1G (fix breaking the IGNORE_OFFSET feature)
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Tue, 9 May 2023 20:22:06 +0000 (16:22 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Tue, 9 May 2023 20:27:16 +0000 (16:27 -0400)
This reverts commit 6313e5360d2d7b353a1eb752ae2d952f95499853.

fs/btrfs/ioctl.c

index 3950d9a94aba3a53bd699cbe7ae94b395239ad15..212f13c2e3c9eb26adb2d003ad368d03eafd4c9b 100644 (file)
@@ -4279,6 +4279,7 @@ static long btrfs_ioctl_logical_to_ino(struct btrfs_fs_info *fs_info,
                        ret = -EINVAL;
                        goto out_loi;
                }
+               ignore_offset = loi->flags & BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET;
                size = min_t(u32, loi->size, SZ_1G);
        }