f2fs: don't set FI_PREALLOCATED_ALL for partial write
authorChao Yu <chao@kernel.org>
Tue, 12 Dec 2023 01:01:20 +0000 (09:01 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 Dec 2023 01:46:35 +0000 (17:46 -0800)
commit394e7f4dbb32a44ad1a1569d55aa680e28ab3315
tree88c54440f02f42c52f5d08bfdc798a8a53580351
parentbb34cc6ca87ff78f9fb5913d7619dc1389554da6
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: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c