Skip to content

Commit

Permalink
drivers/staging/lustre: Coding-guideline: Missing a blank line after …
Browse files Browse the repository at this point in the history
…declarations

Adding a blank line after declaration

Signed-off-by: Pushkar Jambhlekar <pushkar.iit@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Pushkar Jambhlekar authored and Greg Kroah-Hartman committed Apr 8, 2017
1 parent b2e8aa5 commit d9f5af4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/lustre/lustre/llite/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ static int ll_ddelete(const struct dentry *de)
static int ll_d_init(struct dentry *de)
{
struct ll_dentry_data *lld = kzalloc(sizeof(*lld), GFP_KERNEL);

if (unlikely(!lld))
return -ENOMEM;
lld->lld_invalid = 1;
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/lustre/lustre/llite/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ struct dentry *ll_splice_alias(struct inode *inode, struct dentry *de)
{
if (inode) {
struct dentry *new = ll_find_alias(inode, de);

if (new) {
d_move(new, de);
iput(inode);
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/lustre/lustre/llite/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ static const char *ll_get_link(struct dentry *dentry,
struct ptlrpc_request *request = NULL;
int rc;
char *symname = NULL;

if (!dentry)
return ERR_PTR(-ECHILD);

Expand Down
1 change: 1 addition & 0 deletions drivers/staging/lustre/lustre/llite/vvp_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ static void vvp_io_advance(const struct lu_env *env,
{
struct cl_object *obj = ios->cis_io->ci_obj;
struct vvp_io *vio = cl2vvp_io(env, ios);

CLOBINVRNT(env, obj, vvp_object_invariant(obj));

vio->vui_tot_count -= nob;
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/lustre/lustre/obdclass/cl_page.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ void cl_page_disown0(const struct lu_env *env,
int cl_page_is_owned(const struct cl_page *pg, const struct cl_io *io)
{
struct cl_io *top = cl_io_top((struct cl_io *)io);

LINVRNT(cl_object_same(pg->cp_obj, io->ci_obj));
return pg->cp_state == CPS_OWNED && pg->cp_owner == top;
}
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/lustre/lustre/osc/osc_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ int osc_extent_finish(const struct lu_env *env, struct osc_extent *ext,
int offset = last_off & ~PAGE_MASK;
int count = last_count + (offset & (blocksize - 1));
int end = (offset + last_count) & (blocksize - 1);

if (end)
count += blocksize - end;

Expand Down

0 comments on commit d9f5af4

Please sign in to comment.