diff options
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index d9ba8cb0ee75..bd269d268824 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -1443,6 +1443,8 @@ static int nfs_unlink(struct inode *dir, struct dentry *dentry) | |||
1443 | if (atomic_read(&dentry->d_count) > 1) { | 1443 | if (atomic_read(&dentry->d_count) > 1) { |
1444 | spin_unlock(&dentry->d_lock); | 1444 | spin_unlock(&dentry->d_lock); |
1445 | spin_unlock(&dcache_lock); | 1445 | spin_unlock(&dcache_lock); |
1446 | /* Start asynchronous writeout of the inode */ | ||
1447 | write_inode_now(dentry->d_inode, 0); | ||
1446 | error = nfs_sillyrename(dir, dentry); | 1448 | error = nfs_sillyrename(dir, dentry); |
1447 | unlock_kernel(); | 1449 | unlock_kernel(); |
1448 | return error; | 1450 | return error; |