[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YFbHD+jwinE0D35w@mit.edu>
Date: Sun, 21 Mar 2021 00:09:51 -0400
From: "Theodore Ts'o" <tytso@....edu>
To: "zhangyi (F)" <yi.zhang@...wei.com>
Cc: linux-ext4@...r.kernel.org, jack@...e.cz, yangerkun@...wei.com
Subject: Re: [PATCH v1 2/2] ext4: Do not iput inode under running transaction
in ext4_rename()
On Wed, Mar 03, 2021 at 09:17:03PM +0800, zhangyi (F) wrote:
> 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@...wei.com>
Thanks, applied.
- Ted
Powered by blists - more mailing lists