f2fs: fix to update page flag
authorChao Yu <chao2.yu@samsung.com>
Wed, 8 Jul 2015 10:24:38 +0000 (18:24 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Aug 2015 21:09:57 +0000 (14:09 -0700)
commit90d4388ac2cec0c83cad7315d3cd0065553430e1
treed379deec3b4d39511f733e90d2705b394700beaf
parent7023a1ad17f4e21acb74167ab647cd123d9eb801
f2fs: fix to update page flag

This patch fixes to update page flag (e.g. Uptodate/cold flag) in
->write_begin.

Otherwise, page will be non-uptodate when we try to write entire
page, and cold data flag in page will not be clean when gced page
is being rewritten.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c