]> Pileus Git - ~andy/linux/commitdiff
fuse: use drop_nlink() instead of direct nlink manipulation
authorCsaba Henk <csaba@gluster.com>
Mon, 24 Aug 2009 04:14:07 +0000 (06:14 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 16 Sep 2009 12:15:28 +0000 (14:15 +0200)
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>
fs/fuse/control.c

index 99c99dfb03738a17496df4f5ea8e656b0c750e70..218d514924c0d1ea16b39b8a08a61e54bbef9d01 100644 (file)
@@ -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)