]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop bcache patches from 6.7
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Feb 2024 18:53:32 +0000 (19:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Feb 2024 18:53:32 +0000 (19:53 +0100)
queue-6.7/bcachefs-fix-check_version_upgrade.patch [deleted file]
queue-6.7/bcachefs-fix-missing-bch2_err_class-calls.patch [deleted file]
queue-6.7/series

diff --git a/queue-6.7/bcachefs-fix-check_version_upgrade.patch b/queue-6.7/bcachefs-fix-check_version_upgrade.patch
deleted file mode 100644 (file)
index 5a513dd..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-From 04e67b8c3e2626cc05fe7948653fa993903f303e Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Mon, 12 Feb 2024 20:05:48 -0500
-Subject: bcachefs: Fix check_version_upgrade()
-
-From: Kent Overstreet <kent.overstreet@linux.dev>
-
-[ Upstream commit 2eeccee86dc75a584a8c7e67a8b824d5168c978f ]
-
-When also downgrading, check_version_upgrade() could pick a new version
-greater than the latest supported version.
-
-Fixes:
-Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- fs/bcachefs/recovery.c | 11 ++++++-----
- 1 file changed, 6 insertions(+), 5 deletions(-)
-
-diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
-index 5cf7d0532002..841b356ae853 100644
---- a/fs/bcachefs/recovery.c
-+++ b/fs/bcachefs/recovery.c
-@@ -542,8 +542,9 @@ u64 bch2_recovery_passes_from_stable(u64 v)
- static bool check_version_upgrade(struct bch_fs *c)
- {
--      unsigned latest_compatible = bch2_latest_compatible_version(c->sb.version);
-       unsigned latest_version = bcachefs_metadata_version_current;
-+      unsigned latest_compatible = min(latest_version,
-+                                       bch2_latest_compatible_version(c->sb.version));
-       unsigned old_version = c->sb.version_upgrade_complete ?: c->sb.version;
-       unsigned new_version = 0;
-@@ -562,7 +563,7 @@ static bool check_version_upgrade(struct bch_fs *c)
-                       new_version = latest_version;
-                       break;
-               case BCH_VERSION_UPGRADE_none:
--                      new_version = old_version;
-+                      new_version = min(old_version, latest_version);
-                       break;
-               }
-       }
-@@ -718,7 +719,7 @@ int bch2_fs_recovery(struct bch_fs *c)
-               goto err;
-       }
--      if (!(c->opts.nochanges && c->opts.norecovery)) {
-+      if (!c->opts.nochanges) {
-               mutex_lock(&c->sb_lock);
-               bool write_sb = false;
-@@ -748,7 +749,7 @@ int bch2_fs_recovery(struct bch_fs *c)
-               if (bch2_check_version_downgrade(c)) {
-                       struct printbuf buf = PRINTBUF;
--                      prt_str(&buf, "Version downgrade required:\n");
-+                      prt_str(&buf, "Version downgrade required:");
-                       __le64 passes = ext->recovery_passes_required[0];
-                       bch2_sb_set_downgrade(c,
-@@ -756,7 +757,7 @@ int bch2_fs_recovery(struct bch_fs *c)
-                                       BCH_VERSION_MINOR(c->sb.version));
-                       passes = ext->recovery_passes_required[0] & ~passes;
-                       if (passes) {
--                              prt_str(&buf, "  running recovery passes: ");
-+                              prt_str(&buf, "\n  running recovery passes: ");
-                               prt_bitflags(&buf, bch2_recovery_passes,
-                                            bch2_recovery_passes_from_stable(le64_to_cpu(passes)));
-                       }
--- 
-2.43.0
-
diff --git a/queue-6.7/bcachefs-fix-missing-bch2_err_class-calls.patch b/queue-6.7/bcachefs-fix-missing-bch2_err_class-calls.patch
deleted file mode 100644 (file)
index aff7c5e..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-From de3b6d7204d5b307d97e8f20ad03a21c59dfe89d Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Fri, 9 Feb 2024 18:34:05 -0500
-Subject: bcachefs: Fix missing bch2_err_class() calls
-
-From: Kent Overstreet <kent.overstreet@linux.dev>
-
-[ Upstream commit 1a1c93e7f8141749ecb10165a95e95ad484bb85f ]
-
-We aren't supposed to be leaking our private error codes outside of
-fs/bcachefs/.
-
-Fixes:
-Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- fs/bcachefs/fs.c | 9 +++++----
- 1 file changed, 5 insertions(+), 4 deletions(-)
-
-diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c
-index 49da8db1d9e9..b3d2fe4377b1 100644
---- a/fs/bcachefs/fs.c
-+++ b/fs/bcachefs/fs.c
-@@ -435,7 +435,7 @@ static int bch2_link(struct dentry *old_dentry, struct inode *vdir,
-               bch2_subvol_is_ro(c, inode->ei_subvol) ?:
-               __bch2_link(c, inode, dir, dentry);
-       if (unlikely(ret))
--              return ret;
-+              return bch2_err_class(ret);
-       ihold(&inode->v);
-       d_instantiate(dentry, &inode->v);
-@@ -487,8 +487,9 @@ static int bch2_unlink(struct inode *vdir, struct dentry *dentry)
-       struct bch_inode_info *dir= to_bch_ei(vdir);
-       struct bch_fs *c = dir->v.i_sb->s_fs_info;
--      return bch2_subvol_is_ro(c, dir->ei_subvol) ?:
-+      int ret = bch2_subvol_is_ro(c, dir->ei_subvol) ?:
-               __bch2_unlink(vdir, dentry, false);
-+      return bch2_err_class(ret);
- }
- static int bch2_symlink(struct mnt_idmap *idmap,
-@@ -523,7 +524,7 @@ static int bch2_symlink(struct mnt_idmap *idmap,
-       return 0;
- err:
-       iput(&inode->v);
--      return ret;
-+      return bch2_err_class(ret);
- }
- static int bch2_mkdir(struct mnt_idmap *idmap,
-@@ -641,7 +642,7 @@ static int bch2_rename2(struct mnt_idmap *idmap,
-                          src_inode,
-                          dst_inode);
--      return ret;
-+      return bch2_err_class(ret);
- }
- static void bch2_setattr_copy(struct mnt_idmap *idmap,
--- 
-2.43.0
-
index fe4fbc9ad8c8962eedf62c4cbad0f54d084f3278..ce9bd1f29b3f9878854d7616a70870e229d5d5dd 100644 (file)
@@ -103,12 +103,10 @@ revert-kobject-remove-redundant-checks-for-whether-k.patch
 pci-fix-active-state-requirement-in-pme-polling.patch
 iio-adc-ad4130-zero-initialize-clock-init-data.patch
 iio-adc-ad4130-only-set-gpio_ctrl-if-pin-is-unused.patch
-bcachefs-fix-missing-bch2_err_class-calls.patch
 cifs-fix-underflow-in-parse_server_interfaces.patch
 i2c-qcom-geni-correct-i2c-tre-sequence.patch
 irqchip-loongson-eiointc-use-correct-struct-type-in-.patch
 irqchip-gic-v3-its-handle-non-coherent-gicv4-redistr.patch
-bcachefs-fix-check_version_upgrade.patch
 powerpc-kasan-limit-kasan-thread-size-increase-to-32.patch
 powerpc-iommu-fix-the-missing-iommu_group_put-during.patch
 i2c-pasemi-split-driver-into-two-separate-modules.patch