Skip to content

Commit

Permalink
fuse: use drop_nlink() instead of direct nlink manipulation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Csaba Henk authored and Miklos Szeredi committed Sep 16, 2009
1 parent 37d217f commit d6db07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fuse/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void fuse_ctl_remove_conn(struct fuse_conn *fc)
d_drop(dentry);
dput(dentry);
}
fuse_control_sb->s_root->d_inode->i_nlink--;
drop_nlink(fuse_control_sb->s_root->d_inode);
}

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

0 comments on commit d6db07d

Please sign in to comment.