]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: avoid clear valid page
authorChao Yu <chao2.yu@samsung.com>
Wed, 12 Aug 2015 09:48:21 +0000 (17:48 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 20 Aug 2015 16:00:06 +0000 (09:00 -0700)
commit5613f00b261b29be29688b820063a0c7cde5f862
tree1a577cdfc880549cc115155fcf971d3ad5272015
parent87978747916485fea0652712802317bd9eb6b5c9
f2fs: avoid clear valid page

In f2fs_delete_entry, if last dirent is remove from the dentry page,
we will try to punch that page since it has no valid date in it.

But truncate_hole which is used for punching could fail because of
no memory or IO error, if that happened, we'd better skip clearing
this valid dentry page.

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