f2fs: assign segments correctly for direct_io
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 4 Nov 2016 21:33:57 +0000 (14:33 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 23 Nov 2016 20:11:28 +0000 (12:11 -0800)
commitbdb7d964c4fb73078ab21c20e8c7b7bf7e641bb6
tree2daf6b28dcc2aa76ed2a8dc6e19475b0785a42eb
parent9f0552e078b8a25fcf9c3950a05ea1398616d2b9
f2fs: assign segments correctly for direct_io

Previously, we assigned CURSEG_WARM_DATA for direct_io, but if we have two or
four logs, we do not use that type at all.
Let's fix it.

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