commit | 8a81484550fe869dcf297b248e226b150554a7c2 | [log] [tgz] |
---|---|---|
author | Jaegeuk Kim <jaegeuk@kernel.org> | Tue Jun 07 14:34:22 2016 -0700 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Mon Nov 13 22:14:49 2017 +0100 |
tree | 58b80ac16b4bc082cd0385994ed9ade6a52b6ca3 | |
parent | b017edd3c98a0eea1bccb0f83bdf1c8cb356be99 [diff] |
f2fs: fix deadlock in add_link failure mkdir sync_dirty_inode - init_inode_metadata - lock_page(node) - make_empty_dir - filemap_fdatawrite() - do_writepages - lock_page(data) - write_page(data) - lock_page(node) - f2fs_init_acl - error - truncate_inode_pages - lock_page(data) So, we don't need to truncate data pages in this error case, which will be done by f2fs_evict_inode. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>