f2fs: avoid page allocation for truncating partial inline_data
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 6 Sep 2016 22:55:54 +0000 (15:55 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 12 Sep 2016 17:30:39 +0000 (10:30 -0700)
commit34b5d5c22d64273319a525cb4e9f2d073df9f4a0
tree504d4dbc5b217d7de478ab5c4d49a2ca9a2f945b
parent68f313935fb205822ed1f923f7833639f3c78573
f2fs: avoid page allocation for truncating partial inline_data

When truncating cached inline_data, we don't need to allocate a new page
all the time. Instead, it must check its page cache only.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c