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

(cherry picked from commit a2c779df9bcb11a06b43caa44811a5d541f77c5f)

fs/btrfs/ioctl.c

index 4c947d2167fc966bbc5a2db6cf58292e3a3bc5d8..aec889b6088cf0beeb6dfb4f88c2b0158bff7e53 100644 (file)
@@ -4303,6 +4303,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);
        }