aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2009-08-24 00:14:07 -0400
committerMiklos Szeredi <mszeredi@suse.cz>2009-09-16 08:15:28 -0400
commitd6db07ded51c5fb4df2f4a32e6a41e9bb5db7fc4 (patch)
tree149cc06d32038b9ba56cb1b54197b649af36083b /fs/fuse
parent37d217f029a56a6d385f99773fb27dfcb51f9a46 (diff)
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>
Diffstat (limited to 'fs/fuse')
-rw-r--r--fs/fuse/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/control.c b/fs/fuse/control.c
index 99c99dfb0373..218d514924c0 100644
--- a/fs/fuse/control.c
+++ b/fs/fuse/control.c
@@ -156,7 +156,7 @@ void fuse_ctl_remove_conn(struct fuse_conn *fc)
156 d_drop(dentry); 156 d_drop(dentry);
157 dput(dentry); 157 dput(dentry);
158 } 158 }
159 fuse_control_sb->s_root->d_inode->i_nlink--; 159 drop_nlink(fuse_control_sb->s_root->d_inode);
160} 160}
161 161
162static int fuse_ctl_fill_super(struct super_block *sb, void *data, int silent) 162static int fuse_ctl_fill_super(struct super_block *sb, void *data, int silent)