lkml.org 
[lkml]   [2023]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/3] ext4: fix some ext4_lblk_t overflow issues
Date
Changes since v1:
* Rename fex_end() and pa_end() to extent_logical_end() and pa_logical_end()
to make the code more readable.
* Refactor the logic for adjusting the best extent in ext4_mb_new_inode_pa()
to simplify the code and remove redundant parameter for helper function.
* Merged patch 4 to patch 1 as mainline commit 9d3de7ee192a fixed the issue.

Baokun Li (3):
ext4: add two helper functions extent_logical_end() and pa_logical_end()
ext4: fix BUG in ext4_mb_new_inode_pa() due to overflow
ext4: avoid overlapping preallocations due to overflow

fs/ext4/mballoc.c | 61 +++++++++++++++++++++--------------------------
fs/ext4/mballoc.h | 14 +++++++++++
2 files changed, 41 insertions(+), 34 deletions(-)

--
2.31.1

\
 
 \ /
  Last update: 2023-07-24 14:14    [W:0.306 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site