On Mon, Mar 23, 2020 at 3:21 PM Miklos Szeredi wrote: > > On Mon, Mar 23, 2020 at 2:24 PM Amir Goldstein wrote: > > IDGI. coming from vfs_unlink() and vfs_rename() it doesn't look like > > it is possible for victim inode not to have a hashed alias, so the > > alias test seems futile. > > Yeah, needs a comment: both ovl_remove_upper() and > ovl_remove_and_whiteout() unhash the dentry before returning, so > d_find_alias() will find another hashed dentry or none. Except that doesn't seem to be true for the overwriting rename case... Attached patch should work for both. Thanks, Miklos