* linux-next: manual merge of the ext4 tree with the origin tree
@ 2026-11-24 13:22 Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2026-11-24 13:22 UTC (permalink / raw)
To: Theodore Ts'o
Cc: Christian Brauner, Joanne Koong, Linux Kernel Mailing List,
Linux Next Mailing List
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread* linux-next: manual merge of the ext4 tree with the origin tree
@ 2025-10-15 10:33 Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2025-10-15 10:33 UTC (permalink / raw)
To: Theodore Ts'o
Cc: Jan Kara, Keguang Zhang, Linux Kernel Mailing List,
Linux Next Mailing List, Thomas Bogendoerfer
[-- Attachment #1: Type: text/plain, Size: 1721 bytes --]
Hi all,
Today's linux-next merge of the ext4 tree got conflicts in:
arch/mips/configs/loongson1_defconfig
arch/mips/configs/loongson1c_defconfig
between commit:
ad79935dbc227 ("MIPS: configs: Consolidate Loongson1 defconfigs")
from the origin tree and commit:
acf943e9768ec ("ext4: fix checks for orphan inodes")
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 arch/mips/configs/loongson1_defconfig
index 81acae6f61c8b,a64a394479638..0000000000000
--- a/arch/mips/configs/loongson1_defconfig
+++ b/arch/mips/configs/loongson1_defconfig
@@@ -138,20 -86,17 +138,24 @@@ CONFIG_NEW_LEDS=
CONFIG_LEDS_CLASS=y
CONFIG_LEDS_GPIO=y
CONFIG_LEDS_TRIGGERS=y
+CONFIG_LEDS_TRIGGER_MTD=y
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
CONFIG_RTC_CLASS=y
-CONFIG_RTC_DRV_LOONGSON1=y
+# CONFIG_RTC_NVMEM is not set
+CONFIG_RTC_DRV_LOONGSON=y
+CONFIG_DMADEVICES=y
+CONFIG_LOONGSON1_APB_DMA=y
+# CONFIG_VIRTIO_MENU is not set
+# CONFIG_VHOST_MENU is not set
+# CONFIG_MIPS_PLATFORM_DEVICES is not set
# CONFIG_IOMMU_SUPPORT is not set
- # CONFIG_NVMEM is not set
+ CONFIG_EXT2_FS=y
+ CONFIG_EXT2_FS_XATTR=y
+ CONFIG_EXT2_FS_POSIX_ACL=y
+ CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y
+ CONFIG_EXT4_FS_SECURITY=y
# CONFIG_DNOTIFY is not set
CONFIG_VFAT_FS=y
CONFIG_PROC_KCORE=y
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-24 13:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 13:22 linux-next: manual merge of the ext4 tree with the origin tree Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2025-10-15 10:33 Mark Brown
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®