Commit 109a1624 authored by Ankit Garg's avatar Ankit Garg Committed by Greg Kroah-Hartman

staging: lustre: lclient: lcommon_cl.c fixing coding style issues

This patch fixes the checkpatch.pl warning:

WARNING: else is not generally useful after a break or return
+                       return result;
+               } else {
Signed-off-by: default avatarAnkit Garg <kerneldvlper@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 907b8a00
...@@ -836,25 +836,24 @@ int ccc_prep_size(const struct lu_env *env, struct cl_object *obj, ...@@ -836,25 +836,24 @@ int ccc_prep_size(const struct lu_env *env, struct cl_object *obj,
*exceed = 1; *exceed = 1;
} }
return result; return result;
} else { }
/* /*
* region is within kms and, hence, within real file * region is within kms and, hence, within real file
* size (A). We need to increase i_size to cover the * size (A). We need to increase i_size to cover the
* read region so that generic_file_read() will do its * read region so that generic_file_read() will do its
* job, but that doesn't mean the kms size is * job, but that doesn't mean the kms size is
* _correct_, it is only the _minimum_ size. If * _correct_, it is only the _minimum_ size. If
* someone does a stat they will get the correct size * someone does a stat they will get the correct size
* which will always be >= the kms value here. * which will always be >= the kms value here.
* b=11081 * b=11081
*/ */
if (cl_isize_read(inode) < kms) { if (cl_isize_read(inode) < kms) {
cl_isize_write_nolock(inode, kms); cl_isize_write_nolock(inode, kms);
CDEBUG(D_VFSTRACE, CDEBUG(D_VFSTRACE,
DFID" updating i_size %llu\n", DFID" updating i_size %llu\n",
PFID(lu_object_fid(&obj->co_lu)), PFID(lu_object_fid(&obj->co_lu)),
(__u64)cl_isize_read(inode)); (__u64)cl_isize_read(inode));
}
} }
} }
ccc_object_size_unlock(obj); ccc_object_size_unlock(obj);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment