diff options
| author | Jan Kara <[email protected]> | 2023-01-03 11:44:30 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-01-18 17:12:56 -0800 |
| commit | 4b89a37d54a0b5ed6b2e5a9afc44a15a22e563f5 (patch) | |
| tree | 8bdbc93c57930559198ec064b2900ce46eccb392 /tools/perf/scripts/python | |
| parent | 6c364edc194e104566f4de72f7a2af5b8fc17110 (diff) | |
fs: don't allocate blocks beyond EOF from __mpage_writepage
When __mpage_writepage() is called for a page beyond EOF, it will go and
allocate all blocks underlying the page. This is not only unnecessary but
this way blocks can get leaked (e.g. if a page beyond EOF is marked dirty
but in the end write fails and i_size is not extended).
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Jan Kara <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions