[f2fs-dev] [PATCH] f2fs: fix ifolio memory leak in f2fs_move_inline_dirents error path

2025-10-18 Thread Haofeng Li via Linux-f2fs-devel
From: Haofeng Li Fixes a memory leak issue in f2fs_move_inline_dirents() where the ifolio is not properly released in certain error paths. Problem Analysis: - In f2fs_try_convert_inline_dir(), ifolio is acquired via f2fs_get_inode_folio() - When do_convert_inline_dir() fails, the caller expects

Re: [f2fs-dev] [PATCH] f2fs: fix ifolio memory leak in f2fs_move_inline_dirents error path

2025-10-18 Thread Haofeng Li via Linux-f2fs-devel
>Fixes a memory leak issue in f2fs_move_inline_dirents() where >the ifolio is not properly released in certain error paths. >Problem Analysis: >- In f2fs_try_convert_inline_dir(), ifolio is acquired via >f2fs_get_inode_folio() >- When do_convert_inline_dir() fails, the caller expects ifolio to be