]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: always unlock the page in f2fs_write_single_data_page
authorChristoph Hellwig <hch@lst.de>
Thu, 8 May 2025 05:14:30 +0000 (07:14 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 May 2025 15:23:18 +0000 (15:23 +0000)
commit84c5d16711a300949cfec83e76299a75b4cdf04a
treef1803483f07bbbe69a78b14b1a6dc096431466fa
parent402dd9f02ce447e2253953b5f84a2b62fed00889
f2fs: always unlock the page in f2fs_write_single_data_page

Consolidate the code to unlock the page in f2fs_write_single_data_page
instead of leaving it to the callers for the AOP_WRITEPAGE_ACTIVATE case.
Replace AOP_WRITEPAGE_ACTIVATE with a positive return of 1 as this case
now doesn't match the historic ->writepage special return code that is
on it's way out now that ->writepage has been removed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
fs/f2fs/data.c