Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 877f4c43 authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Sahitya Tummala
Browse files

f2fs: do not preallocate blocks which has wrong buffer



Sheng Yong reports needless preallocation if write(small_buffer, large_size)
is called.

In that case, f2fs preallocates large_size, but vfs returns early due to
small_buffer size. Let's detect it before preallocation phase in f2fs.

Change-Id: I932f9d442c3bad6576ab67ddca47d500edf905fe
Reported-by: default avatarSheng Yong <shengyong1@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Git-Repo: https://android.googlesource.com/kernel/common/


Git-Commit: b6453fcb
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 897f20c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment