diff options
| author | Jiucheng Xu <jiucheng.xu@amlogic.com> | 2025-10-10 10:45:50 +0000 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-11-07 17:46:38 +0000 |
| commit | 2308de27c03d8ed75b28dab2354eb02c5f8e69be (patch) | |
| tree | 0fa2c7f08f8246258a667e752f4145c1623095f6 /tools/lib/python/kdoc/kdoc_parser.py | |
| parent | e4384545e22024d39edc13c63433f37e31960671 (diff) | |
f2fs: Use mapping->gfp_mask to get file cache for writing
On 32-bit architectures, when GFP_NOFS is used, the file cache for write
operations cannot be allocated from the highmem and CMA.
Since mapping->gfp_mask is set to GFP_HIGHUSER_MOVABLE during inode
allocation, using mapping_gfp_mask(mapping) as the GFP flag of getting file
cache for writing is more efficient for 32-bit architectures.
Additionally, use FGP_NOFS to avoid potential deadlock issues caused by
GFP_FS in GFP_HIGHUSER_MOVABLE
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions
