summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/llite/rw.c
diff options
context:
space:
mode:
authorOleg Drokin <green@linuxhacker.ru>2016-04-01 15:18:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-11 20:44:03 -0700
commitda5ecb4dfd84fa4eaba782fc3fa0aa0f807a5804 (patch)
tree842819e7f8e0c32e1e0639faa723ba57d02be755 /drivers/staging/lustre/lustre/llite/rw.c
parent5f47992491ffe2d5b2b4ea3556bc0f3c0ec9bc8b (diff)
downloadop-kernel-dev-da5ecb4dfd84fa4eaba782fc3fa0aa0f807a5804.zip
op-kernel-dev-da5ecb4dfd84fa4eaba782fc3fa0aa0f807a5804.tar.gz
staging/lustre: Fix braces {} style
This fixes all checkpatch form of this from the Lustre tree: CHECK: braces {} should be used on all arms of this statement Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/llite/rw.c')
-rw-r--r--drivers/staging/lustre/lustre/llite/rw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/llite/rw.c b/drivers/staging/lustre/lustre/llite/rw.c
index e3cf640..fee319c 100644
--- a/drivers/staging/lustre/lustre/llite/rw.c
+++ b/drivers/staging/lustre/lustre/llite/rw.c
@@ -132,8 +132,9 @@ struct ll_cl_context *ll_cl_init(struct file *file, struct page *vmpage)
lcc->lcc_page = page;
lu_ref_add(&page->cp_reference, "cl_io", io);
result = 0;
- } else
+ } else {
result = PTR_ERR(page);
+ }
}
if (result) {
ll_cl_fini(lcc);
@@ -488,8 +489,9 @@ static int ll_read_ahead_pages(const struct lu_env *env,
if (rc == 1) {
(*reserved_pages)--;
count++;
- } else if (rc == -ENOLCK)
+ } else if (rc == -ENOLCK) {
break;
+ }
} else if (stride_ria) {
/* If it is not in the read-ahead window, and it is
* read-ahead mode, then check whether it should skip
OpenPOWER on IntegriCloud