summaryrefslogtreecommitdiff
path: root/fs/Makefile
diff options
context:
space:
mode:
authorzhangyi (F) <yi.zhang@huawei.com>2021-03-03 21:17:03 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-07 12:04:21 +0200
commit2fc8ce56985de3b9e547748658772af30b915088 (patch)
treedbbcb7773996bf95f4db5507a788879417970c21 /fs/Makefile
parentce3a119217b6612f7d9a48fef035ba21a011d324 (diff)
ext4: do not iput inode under running transaction in ext4_rename()
[ Upstream commit 5dccdc5a1916d4266edd251f20bbbb113a5c495f ] In ext4_rename(), when RENAME_WHITEOUT failed to add new entry into directory, it ends up dropping new created whiteout inode under the running transaction. After commit <9b88f9fb0d2> ("ext4: Do not iput inode under running transaction"), we follow the assumptions that evict() does not get called from a transaction context but in ext4_rename() it breaks this suggestion. Although it's not a real problem, better to obey it, so this patch add inode to orphan list and stop transaction before final iput(). Signed-off-by: zhangyi (F) <yi.zhang@huawei.com> Link: https://lore.kernel.org/r/20210303131703.330415-2-yi.zhang@huawei.com Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/Makefile')
0 files changed, 0 insertions, 0 deletions