diff options
-rw-r--r-- | fs/9p/vfs_inode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 5fe45d692c9f..ae8396707707 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -431,6 +431,7 @@ error: | |||
431 | 431 | ||
432 | static int v9fs_remove(struct inode *dir, struct dentry *file, int rmdir) | 432 | static int v9fs_remove(struct inode *dir, struct dentry *file, int rmdir) |
433 | { | 433 | { |
434 | int retval; | ||
434 | struct inode *file_inode; | 435 | struct inode *file_inode; |
435 | struct v9fs_session_info *v9ses; | 436 | struct v9fs_session_info *v9ses; |
436 | struct p9_fid *v9fid; | 437 | struct p9_fid *v9fid; |
@@ -444,7 +445,10 @@ static int v9fs_remove(struct inode *dir, struct dentry *file, int rmdir) | |||
444 | if (IS_ERR(v9fid)) | 445 | if (IS_ERR(v9fid)) |
445 | return PTR_ERR(v9fid); | 446 | return PTR_ERR(v9fid); |
446 | 447 | ||
447 | return p9_client_remove(v9fid); | 448 | retval = p9_client_remove(v9fid); |
449 | if (!retval) | ||
450 | drop_nlink(file_inode); | ||
451 | return retval; | ||
448 | } | 452 | } |
449 | 453 | ||
450 | static int | 454 | static int |