aboutsummaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-10-11 22:56:59 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:34:18 +0200
commita1c6090b950c6cef05b49ccac9e3624ffbda46cf (patch)
treea340bc2688e446f4f1b415cfa623b9e8e21b03f0 /virt
parent3ab99cc83ad85772102d7dc233d6ccc3301ff1fa (diff)
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 'virt')
0 files changed, 0 insertions, 0 deletions