Skip to content

Commit 782c3fb

Browse files
committed
Merge tag 'upstream-3.7-rc1' of git://git.infradead.org/linux-ubifs
Pull ubifs changes from Artem Bityutskiy: "No big changes for 3.7 in UBIFS: - Error reporting and debug printing improvements - Power cut emulation fixes - Minor cleanups" Fix trivial conflict in fs/ubifs/debug.c due to the user namespace changes. * tag 'upstream-3.7-rc1' of git://git.infradead.org/linux-ubifs: UBIFS: print less UBIFS: use pr_ helper instead of printk UBIFS: comply with coding style UBIFS: use __aligned() attribute UBIFS: remove __DATE__ and __TIME__ UBIFS: fix power cut emulation for mtdram UBIFS: improve scanning debug output UBIFS: always print full error reports UBIFS: print PID in debug messages
2 parents 60c7b4d + 3668b70 commit 782c3fb

20 files changed

Lines changed: 451 additions & 578 deletions

‎fs/ubifs/budget.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,8 @@ static int do_budget_space(struct ubifs_info *c)
342342
lebs = c->lst.empty_lebs + c->freeable_cnt + c->idx_gc_cnt -
343343
c->lst.taken_empty_lebs;
344344
if (unlikely(rsvd_idx_lebs > lebs)) {
345-
dbg_budg("out of indexing space: min_idx_lebs %d (old %d), "
346-
"rsvd_idx_lebs %d", min_idx_lebs, c->bi.min_idx_lebs,
347-
rsvd_idx_lebs);
345+
dbg_budg("out of indexing space: min_idx_lebs %d (old %d), rsvd_idx_lebs %d",
346+
min_idx_lebs, c->bi.min_idx_lebs, rsvd_idx_lebs);
348347
return -ENOSPC;
349348
}
350349

‎fs/ubifs/commit.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ int ubifs_bg_thread(void *info)
293293
int err;
294294
struct ubifs_info *c = info;
295295

296-
dbg_msg("background thread \"%s\" started, PID %d",
297-
c->bgt_name, current->pid);
296+
ubifs_msg("background thread \"%s\" started, PID %d",
297+
c->bgt_name, current->pid);
298298
set_freezable();
299299

300300
while (1) {
@@ -328,7 +328,7 @@ int ubifs_bg_thread(void *info)
328328
cond_resched();
329329
}
330330

331-
dbg_msg("background thread \"%s\" stops", c->bgt_name);
331+
ubifs_msg("background thread \"%s\" stops", c->bgt_name);
332332
return 0;
333333
}
334334

@@ -514,7 +514,7 @@ struct idx_node {
514514
struct list_head list;
515515
int iip;
516516
union ubifs_key upper_key;
517-
struct ubifs_idx_node idx __attribute__((aligned(8)));
517+
struct ubifs_idx_node idx __aligned(8);
518518
};
519519

520520
/**

‎fs/ubifs/compress.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ void ubifs_compress(const void *in_buf, int in_len, void *out_buf, int *out_len,
112112
if (compr->comp_mutex)
113113
mutex_unlock(compr->comp_mutex);
114114
if (unlikely(err)) {
115-
ubifs_warn("cannot compress %d bytes, compressor %s, "
116-
"error %d, leave data uncompressed",
115+
ubifs_warn("cannot compress %d bytes, compressor %s, error %d, leave data uncompressed",
117116
in_len, compr->name, err);
118117
goto no_compr;
119118
}
@@ -176,8 +175,8 @@ int ubifs_decompress(const void *in_buf, int in_len, void *out_buf,
176175
if (compr->decomp_mutex)
177176
mutex_unlock(compr->decomp_mutex);
178177
if (err)
179-
ubifs_err("cannot decompress %d bytes, compressor %s, "
180-
"error %d", in_len, compr->name, err);
178+
ubifs_err("cannot decompress %d bytes, compressor %s, error %d",
179+
in_len, compr->name, err);
181180

182181
return err;
183182
}

0 commit comments

Comments
 (0)