From: Mark Brown <broonie@kernel.org>
To: Theodore Ts'o <tytso@mit.edu>
Cc: Christian Brauner <brauner@kernel.org>,
Joanne Koong <joannelkoong@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: linux-next: manual merge of the ext4 tree with the origin tree
Date: Tue, 24 Nov 2026 13:22:31 +0000 [thread overview]
Message-ID: <awWPl-g8O7lOErwL@sirena.org.uk> (raw)
[-- Attachment #1: Type: text/plain, Size: 7193 bytes --]
Hi all,
Today's linux-next merge of the ext4 tree got a conflict in:
fs/ext4/inode.c
between commit:
9e8fc16dc6b47 ("iomap: pass iomap_iter_next_fn directly instead of struct iomap_ops")
d25c14b2d79e4 ("ext4: use sb_find_get_block_nonatomic() in ext4_get_inode_loc_noio()")
from the origin tree and commit:
3ca8192f79504 ("ext4: expand KUnit tests for fs/ext4/inode.c")
from the ext4 tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
diff --cc fs/ext4/inode.c
index e3129353d4edb,9368a68db2894..0000000000000
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@@ -1091,6 -1117,29 +1112,37 @@@ EXPORT_SYMBOL_FOR_EXT4_TEST(ext4_get_bl
/* Maximum number of blocks we map for direct IO at once. */
#define DIO_MAX_BLOCKS 4096
+ struct buffer_head *ext4_sb_getblk(struct super_block *sb, ext4_fsblk_t block)
+ {
+ KUNIT_STATIC_STUB_REDIRECT(ext4_sb_getblk, sb, block);
+ return sb_getblk(sb, block);
+ }
+ EXPORT_SYMBOL_FOR_EXT4_TEST(ext4_sb_getblk);
+
+ struct buffer_head *ext4_sb_find_get_block(struct super_block *sb,
+ ext4_fsblk_t block)
+ {
+ KUNIT_STATIC_STUB_REDIRECT(ext4_sb_find_get_block, sb, block);
+ return sb_find_get_block(sb, block);
+ }
+ EXPORT_SYMBOL_FOR_EXT4_TEST(ext4_sb_find_get_block);
+
++struct buffer_head *ext4_sb_find_get_block_nonatomic(struct super_block *sb,
++ ext4_fsblk_t block)
++{
++ KUNIT_STATIC_STUB_REDIRECT(ext4_sb_find_get_block_nonatomic, sb, block);
++ return sb_find_get_block_nonatomic(sb, block);
++}
++EXPORT_SYMBOL_FOR_EXT4_TEST(ext4_sb_find_get_block_nonatomic);
++
+ struct buffer_head *ext4_sb_getblk_unmovable(struct super_block *sb,
+ ext4_fsblk_t block)
+ {
+ KUNIT_STATIC_STUB_REDIRECT(ext4_sb_getblk_unmovable, sb, block);
+ return getblk_unmovable(sb->s_bdev, block, sb->s_blocksize);
+ }
+ EXPORT_SYMBOL_FOR_EXT4_TEST(ext4_sb_getblk_unmovable);
+
/*
* `handle' can be NULL if create is zero
*/
@@@ -3988,8 -4088,14 +4091,10 @@@ out
return 0;
}
+ EXPORT_SYMBOL_FOR_EXT4_TEST(ext4_iomap_begin);
-static DEFINE_IOMAP_ITER_NEXT(ext4_iomap_next, ext4_iomap_begin);
-
-const struct iomap_ops ext4_iomap_ops = {
- .iomap_next = ext4_iomap_next,
-};
-EXPORT_SYMBOL_FOR_EXT4_TEST(ext4_iomap_ops);
+DEFINE_IOMAP_ITER_NEXT(ext4_iomap_next, ext4_iomap_begin);
++EXPORT_SYMBOL_FOR_EXT4_TEST(ext4_iomap_next);
static int ext4_iomap_begin_report(struct inode *inode, loff_t offset,
loff_t length, unsigned int flags,
@@@ -4042,7 -4148,12 +4147,8 @@@ set_iomap
return 0;
}
-static DEFINE_IOMAP_ITER_NEXT(ext4_iomap_next_report, ext4_iomap_begin_report);
-
-const struct iomap_ops ext4_iomap_report_ops = {
- .iomap_next = ext4_iomap_next_report,
-};
-EXPORT_SYMBOL_FOR_EXT4_TEST(ext4_iomap_report_ops);
+DEFINE_IOMAP_ITER_NEXT(ext4_iomap_next_report, ext4_iomap_begin_report);
++EXPORT_SYMBOL_FOR_EXT4_TEST(ext4_iomap_next_report);
static int ext4_iomap_map_blocks(struct inode *inode, loff_t offset,
loff_t length, struct ext4_map_blocks *map,
@@@ -5884,7 -6032,7 +6012,7 @@@ int ext4_get_inode_loc_noio(struct inod
}
block += inode_offset / inodes_per_block;
- bh = sb_find_get_block_nonatomic(sb, block);
- bh = ext4_sb_find_get_block(sb, block);
++ bh = ext4_sb_find_get_block_nonatomic(sb, block);
if (!bh)
return -EAGAIN;
if (!ext4_buffer_uptodate(bh)) {
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index bda50753b1236..5f1d452604ce2 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -3335,6 +3335,8 @@ extern int ext4_issue_zeroout(handle_t *handle, struct inode *inode,
struct buffer_head *ext4_sb_getblk(struct super_block *sb, ext4_fsblk_t block);
struct buffer_head *ext4_sb_find_get_block(struct super_block *sb,
ext4_fsblk_t block);
+struct buffer_head *ext4_sb_find_get_block_nonatomic(struct super_block *sb,
+ ext4_fsblk_t block);
struct buffer_head *ext4_sb_getblk_unmovable(struct super_block *sb,
ext4_fsblk_t block);
#if IS_ENABLED(CONFIG_EXT4_KUNIT_TESTS)
diff --git a/fs/ext4/inode-test.c b/fs/ext4/inode-test.c
index 8a3d753b7079b..18e4595b032c7 100644
--- a/fs/ext4/inode-test.c
+++ b/fs/ext4/inode-test.c
@@ -1149,6 +1149,8 @@ static struct inode_test_ctx *inode_test_setup(struct kunit *test)
inode_test_sb_getblk_stub);
kunit_activate_static_stub(test, ext4_sb_find_get_block,
inode_test_sb_find_get_block_stub);
+ kunit_activate_static_stub(test, ext4_sb_find_get_block_nonatomic,
+ inode_test_sb_find_get_block_stub);
kunit_activate_static_stub(test, ext4_sb_getblk_unmovable,
inode_test_sb_getblk_unmovable_stub);
kunit_activate_static_stub(test, ext4_ext_getblk,
@@ -2893,7 +2895,7 @@ static void inode_test_get_block_bread_and_walk_buffers(struct kunit *test)
}
/* -------------------------------------------------------------------------
- * 17. ext4_iomap_begin, ext4_iomap_report_ops, and Atomic Writes Tests
+ * 17. ext4_iomap_begin, ext4_iomap_next_report, and Atomic Writes Tests
* -------------------------------------------------------------------------
*/
@@ -2928,16 +2930,14 @@ static void inode_test_iomap_and_atomic_writes(struct kunit *test)
iter = (struct iomap_iter){
.inode = inode, .pos = 0, .len = 24, .flags = IOMAP_REPORT,
};
- err = ext4_iomap_report_ops.iomap_next(&iter, &iter.iomap,
- &iter.srcmap);
+ err = ext4_iomap_next_report(&iter, &iter.iomap, &iter.srcmap);
KUNIT_EXPECT_GT(test, err, 0);
KUNIT_EXPECT_EQ(test, iter.iomap.type, (u16)IOMAP_INLINE);
iter = (struct iomap_iter){
.inode = inode, .pos = 60, .len = 24, .flags = IOMAP_REPORT,
};
- err = ext4_iomap_report_ops.iomap_next(&iter, &iter.iomap,
- &iter.srcmap);
+ err = ext4_iomap_next_report(&iter, &iter.iomap, &iter.srcmap);
KUNIT_EXPECT_EQ(test, err, -ENOENT);
/* 3. Indirect report past s_bitmap_maxbytes returns IOMAP_HOLE */
@@ -2950,8 +2950,7 @@ static void inode_test_iomap_and_atomic_writes(struct kunit *test)
.len = 4096,
.flags = IOMAP_REPORT,
};
- err = ext4_iomap_report_ops.iomap_next(&iter, &iter.iomap,
- &iter.srcmap);
+ err = ext4_iomap_next_report(&iter, &iter.iomap, &iter.srcmap);
KUNIT_EXPECT_GT(test, err, 0);
KUNIT_EXPECT_EQ(test, iter.iomap.type, (u16)IOMAP_HOLE);
@@ -3001,7 +3000,7 @@ static void inode_test_iomap_and_atomic_writes(struct kunit *test)
iter = (struct iomap_iter){
.inode = inode, .pos = 0, .len = 4096, .flags = 0,
};
- err = ext4_iomap_ops.iomap_next(&iter, &iter.iomap, &iter.srcmap);
+ err = ext4_iomap_next(&iter, &iter.iomap, &iter.srcmap);
KUNIT_EXPECT_GT(test, err, 0);
KUNIT_EXPECT_EQ(test, iter.iomap.type, (u16)IOMAP_MAPPED);
KUNIT_EXPECT_EQ(test, iter.iomap.addr,
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2026-11-24 13:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 13:22 Mark Brown [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-15 10:33 Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awWPl-g8O7lOErwL@sirena.org.uk \
--to=broonie@kernel.org \
--cc=brauner@kernel.org \
--cc=joannelkoong@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®