diff options
author | Joe Perches <joe@perches.com> | 2016-10-15 16:59:03 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-01-30 13:14:50 -0500 |
commit | ddeaa6379d50a530f9f57b3d12f7940e079b052c (patch) | |
tree | 32eb8abbff72b1c6b7f5b72ea15cdc776f2c9f90 /fs/nfs/write.c | |
parent | 566cf877a1fcb6d6dc0126b076aad062054c2637 (diff) |
sunrpc & nfs: Add and use dprintk_cont macros
Allow line continuations to work properly with KERN_CONT.
Signed-off-by: Joe Perches <joe@perches.com>
[Anna: Add fallback dprintk_cont() for when CONFIG_SUNRPC_DEBUG=n]
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index b00d53d13d47..ad4219a41f25 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -1787,7 +1787,7 @@ static void nfs_commit_release_pages(struct nfs_commit_data *data) | |||
1787 | if (status < 0) { | 1787 | if (status < 0) { |
1788 | nfs_context_set_write_error(req->wb_context, status); | 1788 | nfs_context_set_write_error(req->wb_context, status); |
1789 | nfs_inode_remove_request(req); | 1789 | nfs_inode_remove_request(req); |
1790 | dprintk(", error = %d\n", status); | 1790 | dprintk_cont(", error = %d\n", status); |
1791 | goto next; | 1791 | goto next; |
1792 | } | 1792 | } |
1793 | 1793 | ||
@@ -1796,11 +1796,11 @@ static void nfs_commit_release_pages(struct nfs_commit_data *data) | |||
1796 | if (!nfs_write_verifier_cmp(&req->wb_verf, &data->verf.verifier)) { | 1796 | if (!nfs_write_verifier_cmp(&req->wb_verf, &data->verf.verifier)) { |
1797 | /* We have a match */ | 1797 | /* We have a match */ |
1798 | nfs_inode_remove_request(req); | 1798 | nfs_inode_remove_request(req); |
1799 | dprintk(" OK\n"); | 1799 | dprintk_cont(" OK\n"); |
1800 | goto next; | 1800 | goto next; |
1801 | } | 1801 | } |
1802 | /* We have a mismatch. Write the page again */ | 1802 | /* We have a mismatch. Write the page again */ |
1803 | dprintk(" mismatch\n"); | 1803 | dprintk_cont(" mismatch\n"); |
1804 | nfs_mark_request_dirty(req); | 1804 | nfs_mark_request_dirty(req); |
1805 | set_bit(NFS_CONTEXT_RESEND_WRITES, &req->wb_context->flags); | 1805 | set_bit(NFS_CONTEXT_RESEND_WRITES, &req->wb_context->flags); |
1806 | next: | 1806 | next: |