filesystems: add missing nlink wrappers
Replace direct i_nlink updates with the respective updater function (inc_nlink, drop_nlink, clear_nlink, inode_dec_link_count). Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:

committed by
Christoph Hellwig

parent
dd2a981f46
commit
6d6b77f163
@@ -521,7 +521,7 @@ static void kill_node(Node *e)
|
||||
write_unlock(&entries_lock);
|
||||
|
||||
if (dentry) {
|
||||
dentry->d_inode->i_nlink--;
|
||||
drop_nlink(dentry->d_inode);
|
||||
d_drop(dentry);
|
||||
dput(dentry);
|
||||
simple_release_fs(&bm_mnt, &entry_count);
|
||||
|
Reference in New Issue
Block a user