Merge branch 'pull/v3.18/powerdomain-fixes' of https://github.com/nmenon/linux-2...
[cascardo/linux.git] / fs / xfs / xfs_log_cil.c
index b3425b3..f6b79e5 100644 (file)
@@ -78,8 +78,6 @@ xlog_cil_init_post_recovery(
 {
        log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log);
        log->l_cilp->xc_ctx->sequence = 1;
-       log->l_cilp->xc_ctx->commit_lsn = xlog_assign_lsn(log->l_curr_cycle,
-                                                               log->l_curr_block);
 }
 
 /*
@@ -634,7 +632,7 @@ out_abort_free_ticket:
        xfs_log_ticket_put(tic);
 out_abort:
        xlog_cil_committed(ctx, XFS_LI_ABORTED);
-       return XFS_ERROR(EIO);
+       return -EIO;
 }
 
 static void
@@ -928,12 +926,12 @@ xlog_cil_init(
 
        cil = kmem_zalloc(sizeof(*cil), KM_SLEEP|KM_MAYFAIL);
        if (!cil)
-               return ENOMEM;
+               return -ENOMEM;
 
        ctx = kmem_zalloc(sizeof(*ctx), KM_SLEEP|KM_MAYFAIL);
        if (!ctx) {
                kmem_free(cil);
-               return ENOMEM;
+               return -ENOMEM;
        }
 
        INIT_WORK(&cil->xc_push_work, xlog_cil_push_work);