Commit 1dcd8022 authored by Chao Yu's avatar Chao Yu Committed by Treehugger Robot
Browse files

UPSTREAM: f2fs: don't set FI_PREALLOCATED_ALL for partial write



In f2fs_preallocate_blocks(), if it is partial write in 4KB, it's not
necessary to call f2fs_map_blocks() and set FI_PREALLOCATED_ALL flag.

Cc: Eric Biggers <ebiggers@google.com>
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 394e7f4d)
Change-Id: Iee6f39dffa3d83c5c2cc46a02f4360dd947645af
parent 9a40f71a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment