Acked-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
- fs/bcachefs/fs.c | 8 +++++---
+ fs/bcachefs/fs.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
-diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c
-index a41d0d8a2f7beb..0dc2466de3f91c 100644
--- a/fs/bcachefs/fs.c
+++ b/fs/bcachefs/fs.c
-@@ -1184,6 +1184,8 @@ static int bch2_fill_extent(struct bch_fs *c,
+@@ -1184,6 +1184,8 @@ static int bch2_fill_extent(struct bch_f
struct fiemap_extent_info *info,
struct bkey_s_c k, unsigned flags)
{
if (bkey_extent_is_direct_data(k.k)) {
struct bkey_ptrs_c ptrs = bch2_bkey_ptrs_c(k);
const union bch_extent_entry *entry;
-@@ -1212,7 +1214,7 @@ static int bch2_fill_extent(struct bch_fs *c,
+@@ -1212,7 +1214,7 @@ static int bch2_fill_extent(struct bch_f
ret = fiemap_fill_next_extent(info,
bkey_start_offset(k.k) << 9,
offset << 9,
if (ret)
return ret;
}
-@@ -1221,13 +1223,13 @@ static int bch2_fill_extent(struct bch_fs *c,
+@@ -1221,13 +1223,13 @@ static int bch2_fill_extent(struct bch_f
} else if (bkey_extent_is_inline_data(k.k)) {
return fiemap_fill_next_extent(info,
bkey_start_offset(k.k) << 9,
flags|
FIEMAP_EXTENT_DELALLOC|
FIEMAP_EXTENT_UNWRITTEN);
---
-2.53.0
-
+++ /dev/null
-From ff9be1416910b55d40528aa8f97292842741a137 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Tue, 9 Jun 2026 12:41:52 +0200
-Subject: rust: str: clean unused import for Rust >= 1.98
-
-From: Miguel Ojeda <ojeda@kernel.org>
-
-[ Upstream commit 3fff4271809b57182c4011811e96556bdd4cb2f9 ]
-
-Starting with Rust 1.98.0 (expected 2026-08-20), the compiler has changed
-how the resolution algorithm works [1] in upstream commit c4d84db5f184
-("Resolver: Batched import resolution."), and it now spots:
-
- error: unused import: `flags::*`
- --> rust/kernel/str.rs:7:9
- |
- 7 | flags::*,
- | ^^^^^^^^
- |
- = note: `-D unused-imports` implied by `-D warnings`
- = help: to override `-D warnings` add `#[allow(unused_imports)]`
-
-It happens to not be needed because the `prelude::*` already provides
-the flags.
-
-Thus clean it up.
-
-Cc: stable@vger.kernel.org # Needed in 6.18.y and later (prelude added to `str`).
-Link: https://github.com/rust-lang/rust/pull/145108 [1]
-Reviewed-by: Gary Guo <gary@garyguo.net>
-Reviewed-by: Alice Ryhl <aliceryhl@google.com>
-Link: https://patch.msgid.link/20260609104152.261145-2-ojeda@kernel.org
-Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- rust/kernel/str.rs | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs
-index 3a276bc32962d9..22cefbc9852360 100644
---- a/rust/kernel/str.rs
-+++ b/rust/kernel/str.rs
-@@ -4,7 +4,6 @@
-
- use crate::{
- alloc::{
-- flags::*,
- AllocError,
- KVec, //
- },
---
-2.53.0
-
+++ /dev/null
-From bdd11ea01c3f5e9daf7289fed6d2c4a2e9c20792 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Tue, 9 Jun 2026 12:41:51 +0200
-Subject: rust: str: use the "kernel vertical" imports style
-
-From: Miguel Ojeda <ojeda@kernel.org>
-
-[ Upstream commit 724a93a9f6033800b02a3530dbcb464638448e7f ]
-
-Convert the imports to use the "kernel vertical" imports style [1].
-
-No functional changes intended.
-
-Link: https://docs.kernel.org/rust/coding-guidelines.html#imports [1]
-Reviewed-by: Gary Guo <gary@garyguo.net>
-Link: https://patch.msgid.link/20260609104152.261145-1-ojeda@kernel.org
-Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
-Stable-dep-of: 3fff4271809b ("rust: str: clean unused import for Rust >= 1.98")
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- rust/kernel/str.rs | 25 ++++++++++++++++++++-----
- 1 file changed, 20 insertions(+), 5 deletions(-)
-
-diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs
-index 8992fedabaf0f7..3a276bc32962d9 100644
---- a/rust/kernel/str.rs
-+++ b/rust/kernel/str.rs
-@@ -3,14 +3,29 @@
- //! String representations.
-
- use crate::{
-- alloc::{flags::*, AllocError, KVec},
-- error::{to_result, Result},
-- fmt::{self, Write},
-- prelude::*,
-+ alloc::{
-+ flags::*,
-+ AllocError,
-+ KVec, //
-+ },
-+ error::{
-+ to_result,
-+ Result, //
-+ },
-+ fmt::{
-+ self,
-+ Write, //
-+ },
-+ prelude::*, //
- };
- use core::{
- marker::PhantomData,
-- ops::{self, Deref, DerefMut, Index},
-+ ops::{
-+ self,
-+ Deref,
-+ DerefMut,
-+ Index, //
-+ }, //
- };
-
- /// Byte string without UTF-8 validity guarantee.
---
-2.53.0
-
rust-str-use-the-kernel-vertical-imports-style.patch
rust-str-clean-unused-import-for-rust-1.98.patch
userfaultfd-gate-must_wait-writability-check-on-pte_.patch
-rust-str-use-the-kernel-vertical-imports-style.patch-6121
-rust-str-clean-unused-import-for-rust-1.98.patch-22556
+++ /dev/null
-From 474b39b3ad8b17909795e92c5a7e78574ffe11ef Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Tue, 9 Jun 2026 12:41:52 +0200
-Subject: rust: str: clean unused import for Rust >= 1.98
-
-From: Miguel Ojeda <ojeda@kernel.org>
-
-[ Upstream commit 3fff4271809b57182c4011811e96556bdd4cb2f9 ]
-
-Starting with Rust 1.98.0 (expected 2026-08-20), the compiler has changed
-how the resolution algorithm works [1] in upstream commit c4d84db5f184
-("Resolver: Batched import resolution."), and it now spots:
-
- error: unused import: `flags::*`
- --> rust/kernel/str.rs:7:9
- |
- 7 | flags::*,
- | ^^^^^^^^
- |
- = note: `-D unused-imports` implied by `-D warnings`
- = help: to override `-D warnings` add `#[allow(unused_imports)]`
-
-It happens to not be needed because the `prelude::*` already provides
-the flags.
-
-Thus clean it up.
-
-Cc: stable@vger.kernel.org # Needed in 6.18.y and later (prelude added to `str`).
-Link: https://github.com/rust-lang/rust/pull/145108 [1]
-Reviewed-by: Gary Guo <gary@garyguo.net>
-Reviewed-by: Alice Ryhl <aliceryhl@google.com>
-Link: https://patch.msgid.link/20260609104152.261145-2-ojeda@kernel.org
-Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- rust/kernel/str.rs | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs
-index a7fccd4c4f3b18..4517c1bc547afb 100644
---- a/rust/kernel/str.rs
-+++ b/rust/kernel/str.rs
-@@ -4,7 +4,6 @@
-
- use crate::{
- alloc::{
-- flags::*,
- AllocError,
- KVec, //
- },
---
-2.53.0
-
+++ /dev/null
-From 529f6ae7ec8428057c7220dfa69ebccd02b46fab Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Tue, 9 Jun 2026 12:41:51 +0200
-Subject: rust: str: use the "kernel vertical" imports style
-
-From: Miguel Ojeda <ojeda@kernel.org>
-
-[ Upstream commit 724a93a9f6033800b02a3530dbcb464638448e7f ]
-
-Convert the imports to use the "kernel vertical" imports style [1].
-
-No functional changes intended.
-
-Link: https://docs.kernel.org/rust/coding-guidelines.html#imports [1]
-Reviewed-by: Gary Guo <gary@garyguo.net>
-Link: https://patch.msgid.link/20260609104152.261145-1-ojeda@kernel.org
-Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
-Stable-dep-of: 3fff4271809b ("rust: str: clean unused import for Rust >= 1.98")
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- rust/kernel/str.rs | 24 +++++++++++++++++++-----
- 1 file changed, 19 insertions(+), 5 deletions(-)
-
-diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs
-index 8311d91549e15e..a7fccd4c4f3b18 100644
---- a/rust/kernel/str.rs
-+++ b/rust/kernel/str.rs
-@@ -3,14 +3,28 @@
- //! String representations.
-
- use crate::{
-- alloc::{flags::*, AllocError, KVec},
-- error::{to_result, Result},
-- fmt::{self, Write},
-- prelude::*,
-+ alloc::{
-+ flags::*,
-+ AllocError,
-+ KVec, //
-+ },
-+ error::{
-+ to_result,
-+ Result, //
-+ },
-+ fmt::{
-+ self,
-+ Write, //
-+ },
-+ prelude::*, //
- };
- use core::{
- marker::PhantomData,
-- ops::{Deref, DerefMut, Index},
-+ ops::{
-+ Deref,
-+ DerefMut,
-+ Index, //
-+ }, //
- };
-
- pub use crate::prelude::CStr;
---
-2.53.0
-
rust-str-use-the-kernel-vertical-imports-style.patch
rust-str-clean-unused-import-for-rust-1.98.patch
userfaultfd-gate-must_wait-writability-check-on-pte_.patch
-rust-str-use-the-kernel-vertical-imports-style.patch-28199
-rust-str-clean-unused-import-for-rust-1.98.patch-12096