Write_one_page() function is missing error in kernel-5.14.0-611.20.1.el9_7 during kernel build

Hi,

I tried to rebuild the kernel with my configs[which was working with RL8.10]. I encountered the “implicit declaration error”. I found the write_one_page() declaration is missing in the source code. I have cross verified in github “torvalds/linux/releases/tag/v5.14” which has the same function declared in “mm/page-writeback.c”.
Can you help me in resolving this issue?

SourceRPM used : kernel-5.14.0-611.20.1.el9_7.src.rpm

Reference Error log:
CC fs/ext2/dir.o
fs/ext2/dir.c: In function ‘ext2_commit_chunk’:
fs/ext2/dir.c:99:23: error: implicit declaration of function ‘write_one_page’; did you mean ‘write_cache_pages’? [-Werror=implicit-function-declaration]
99 | err = write_one_page(page);
| ^~~~~~~~~~~~~~
| write_cache_pages

Is it normal to build ‘ext2’ with RL9?

I am able to resolve the issue by enabling “CONFIG_EXT4_USE_FOR_EXT2”. In the next version, we should cleanup the unwanted function calls.