diff options
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index dbaaf7d2a188..657201acda84 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -595,11 +595,6 @@ void put_nfs_open_context(struct nfs_open_context *ctx) | |||
595 | __put_nfs_open_context(ctx, 0); | 595 | __put_nfs_open_context(ctx, 0); |
596 | } | 596 | } |
597 | 597 | ||
598 | static void put_nfs_open_context_sync(struct nfs_open_context *ctx) | ||
599 | { | ||
600 | __put_nfs_open_context(ctx, 1); | ||
601 | } | ||
602 | |||
603 | /* | 598 | /* |
604 | * Ensure that mmap has a recent RPC credential for use when writing out | 599 | * Ensure that mmap has a recent RPC credential for use when writing out |
605 | * shared pages | 600 | * shared pages |
@@ -646,7 +641,7 @@ static void nfs_file_clear_open_context(struct file *filp) | |||
646 | spin_lock(&inode->i_lock); | 641 | spin_lock(&inode->i_lock); |
647 | list_move_tail(&ctx->list, &NFS_I(inode)->open_files); | 642 | list_move_tail(&ctx->list, &NFS_I(inode)->open_files); |
648 | spin_unlock(&inode->i_lock); | 643 | spin_unlock(&inode->i_lock); |
649 | put_nfs_open_context_sync(ctx); | 644 | __put_nfs_open_context(ctx, filp->f_flags & O_DIRECT ? 0 : 1); |
650 | } | 645 | } |
651 | } | 646 | } |
652 | 647 | ||