Bug 1200450

Summary: F2FS source code bug
Product: [openSUSE] openSUSE Distribution Reporter: Tomoki Fujikawa <presire3>
Component: KernelAssignee: openSUSE Kernel Bugs <kernel-bugs>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P4 - Low CC: Andreas.Stieger, twojstaryzdomu+suse
Version: Leap 15.4   
Target Milestone: Leap 15.4   
Hardware: x86-64   
OS: openSUSE Leap 15.4   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Revert f2fs-Convert-to-using-invalidate_lock.patch

Description Tomoki Fujikawa 2022-06-12 06:39:24 UTC
In openSUSE Leap 15.4 / SLE 15 SP4 BETA,
I have found what appears to be a bug in the source code of the F2FS in default Kernel (5.14.21-150400.22).

When using the default Linux kernel source code,
a bug in the source code causes a compile error when building the F2FS kernel module.

First, install kernel-source.
   sudo zypper install kernel-source

Next, modify the /usr/src/linux-5.14.21-150400.22/fs/f2fs/file.c as follows.
   (Lines 1093 and 1101)  
   * before  
   filemap_invalidate_lock(mapping)  
   
   * after
   filemap_invalidate_lock(inode->i_mapping)

The F2FS kernel module can now be built.
Comment 1 Andreas Stieger 2022-06-13 08:22:10 UTC
.

*** This bug has been marked as a duplicate of bug 1200475 ***
Comment 2 Twój 2022-06-13 10:07:47 UTC
Created attachment 859551 [details]
Revert f2fs-Convert-to-using-invalidate_lock.patch

The attached patch reverts the buggy patch and fixes the problem.