Skip to content

Commit d6db07d

Browse files
csabahenkMiklos Szeredi
authored andcommitted
fuse: use drop_nlink() instead of direct nlink manipulation
drop_nlink() is the API function to decrease the link count of an inode. However, at a place the control filesystem used the decrement operator on i_nlink directly. Fix this. Cc: Anand Avati <avati@gluster.com> Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
1 parent 37d217f commit d6db07d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/fuse/control.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void fuse_ctl_remove_conn(struct fuse_conn *fc)
156156
d_drop(dentry);
157157
dput(dentry);
158158
}
159-
fuse_control_sb->s_root->d_inode->i_nlink--;
159+
drop_nlink(fuse_control_sb->s_root->d_inode);
160160
}
161161

162162
static int fuse_ctl_fill_super(struct super_block *sb, void *data, int silent)

0 commit comments

Comments
 (0)