]> 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:31:32 +0000 (16:31 -0400)
This reverts commit 6313e5360d2d7b353a1eb752ae2d952f95499853.

(cherry picked from commit a2c779df9bcb11a06b43caa44811a5d541f77c5f)

fs/btrfs/ioctl.c

index 2a7cda0bcb1434606a1389d5102571eeb5ad211d..fe6c56b9011ea8cc726ec7eee6a8e0f126fb2b8a 100644 (file)
@@ -3919,6 +3919,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);
        }