aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/unlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/unlink.c')
-rw-r--r--fs/nfs/unlink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/unlink.c b/fs/nfs/unlink.c
index 431981d0265f..8e5428e0b86f 100644
--- a/fs/nfs/unlink.c
+++ b/fs/nfs/unlink.c
@@ -14,6 +14,8 @@
14#include <linux/sched.h> 14#include <linux/sched.h>
15#include <linux/wait.h> 15#include <linux/wait.h>
16 16
17#include "internal.h"
18
17struct nfs_unlinkdata { 19struct nfs_unlinkdata {
18 struct hlist_node list; 20 struct hlist_node list;
19 struct nfs_removeargs args; 21 struct nfs_removeargs args;
@@ -113,6 +115,7 @@ static void nfs_async_unlink_release(void *calldata)
113 struct nfs_unlinkdata *data = calldata; 115 struct nfs_unlinkdata *data = calldata;
114 116
115 nfs_dec_sillycount(data->dir); 117 nfs_dec_sillycount(data->dir);
118 nfs_sb_deactive(NFS_SERVER(data->dir));
116 nfs_free_unlinkdata(data); 119 nfs_free_unlinkdata(data);
117} 120}
118 121
@@ -153,6 +156,7 @@ static int nfs_do_call_unlink(struct dentry *parent, struct inode *dir, struct n
153 nfs_dec_sillycount(dir); 156 nfs_dec_sillycount(dir);
154 return 0; 157 return 0;
155 } 158 }
159 nfs_sb_active(NFS_SERVER(dir));
156 data->args.fh = NFS_FH(dir); 160 data->args.fh = NFS_FH(dir);
157 nfs_fattr_init(&data->res.dir_attr); 161 nfs_fattr_init(&data->res.dir_attr);
158 162