summaryrefslogtreecommitdiff
path: root/fs/f2fs/shrinker.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-10-11 17:56:59 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2016-11-23 23:10:59 +0300
commita11b9f65eae766b17ec3451a6a1766f0a9d1dbff (patch)
tree4e17ee26e835462b5eddd6d521e8baa983290a12 /fs/f2fs/shrinker.c
parent0c0b471e43e7acf0747c6eb410863bf78c14750d (diff)
downloadlinux-a11b9f65eae766b17ec3451a6a1766f0a9d1dbff.tar.xz
f2fs: clear nlink if fail to add_link
We don't need to keep incomplete created inode in cache, so if we fail to add link into directory during new inode creation, it's better to set nlink of inode to zero, then we can evict inode immediately. Otherwise release of nid belong to inode will be delayed until inode cache is being shrunk, it may cause a seemingly endless loop while allocating free nids in time of testing generic/269 case of fstest suit. Signed-off-by: Chao Yu <yuchao0@huawei.com> [Jaegeuk Kim: add update_inode_page to fix kernel panic] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/shrinker.c')
0 files changed, 0 insertions, 0 deletions