Merge branch 'writeback-for-2.6.34' into nfs-for-2.6.34
[linux-drm-fsl-dcu.git] / fs / nfs / inode.c
index dbaaf7d2a1885e9ecd24cf7b6c3576bd6be1dda9..657201acda84ba2232851971b098787eb1a0b2f4 100644 (file)
@@ -595,11 +595,6 @@ void put_nfs_open_context(struct nfs_open_context *ctx)
        __put_nfs_open_context(ctx, 0);
 }
 
-static void put_nfs_open_context_sync(struct nfs_open_context *ctx)
-{
-       __put_nfs_open_context(ctx, 1);
-}
-
 /*
  * Ensure that mmap has a recent RPC credential for use when writing out
  * shared pages
@@ -646,7 +641,7 @@ static void nfs_file_clear_open_context(struct file *filp)
                spin_lock(&inode->i_lock);
                list_move_tail(&ctx->list, &NFS_I(inode)->open_files);
                spin_unlock(&inode->i_lock);
-               put_nfs_open_context_sync(ctx);
+               __put_nfs_open_context(ctx, filp->f_flags & O_DIRECT ? 0 : 1);
        }
 }