mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-27 05:32:27 +00:00
ovl: clear nlink on rmdir
To make delete notification work on fa/inotify. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
76bc8e2843
commit
dbc816d05d
@ -696,8 +696,12 @@ static int ovl_do_remove(struct dentry *dentry, bool is_dir)
|
||||
else
|
||||
err = ovl_remove_and_whiteout(dentry, is_dir);
|
||||
revert_creds(old_cred);
|
||||
if (!err && !is_dir)
|
||||
drop_nlink(dentry->d_inode);
|
||||
if (!err) {
|
||||
if (is_dir)
|
||||
clear_nlink(dentry->d_inode);
|
||||
else
|
||||
drop_nlink(dentry->d_inode);
|
||||
}
|
||||
out_drop_write:
|
||||
ovl_drop_write(dentry);
|
||||
out:
|
||||
|
Loading…
x
Reference in New Issue
Block a user