diff options
Diffstat (limited to 'fs/nfs/inode.c')
| -rw-r--r-- | fs/nfs/inode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 5c7325c5c5e6..6fa01aea2488 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
| @@ -685,7 +685,10 @@ static void __put_nfs_open_context(struct nfs_open_context *ctx, int is_sync) | |||
| 685 | if (ctx->cred != NULL) | 685 | if (ctx->cred != NULL) |
| 686 | put_rpccred(ctx->cred); | 686 | put_rpccred(ctx->cred); |
| 687 | dput(ctx->dentry); | 687 | dput(ctx->dentry); |
| 688 | nfs_sb_deactive(sb); | 688 | if (is_sync) |
| 689 | nfs_sb_deactive(sb); | ||
| 690 | else | ||
| 691 | nfs_sb_deactive_async(sb); | ||
| 689 | kfree(ctx->mdsthreshold); | 692 | kfree(ctx->mdsthreshold); |
| 690 | kfree(ctx); | 693 | kfree(ctx); |
| 691 | } | 694 | } |
