Re: [PATCH -next v5 02/32] ext4: factor out ext4_truncate_[up|down]()
| Newsgroups | org.kernel.vger.linux-ext4 |
|---|---|
| Message-ID | <[email protected]> |
> From: Zhang Yi <[email protected]> > > Refactor ext4_setattr() by introducing two helper functions, > ext4_truncate_up() and ext4_truncate_down(), to handle size changes. The > current ATTR_SIZE processing consolidates checks for both shrinking and > non-shrinking cases, leading to cluttered code. Separating the > truncation paths improves readability. > > Signed-off-by: Zhang Yi <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2