Skip to content

Commit

Permalink
Merge tag 'upstream-3.7-rc1' of git://git.infradead.org/linux-ubifs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
torvalds committed Oct 3, 2012
2 parents 60c7b4d + 3668b70 commit 782c3fb
Show file tree
Hide file tree
Showing 20 changed files with 451 additions and 578 deletions.
5 changes: 2 additions & 3 deletions fs/ubifs/budget.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,8 @@ static int do_budget_space(struct ubifs_info *c)
lebs = c->lst.empty_lebs + c->freeable_cnt + c->idx_gc_cnt -
c->lst.taken_empty_lebs;
if (unlikely(rsvd_idx_lebs > lebs)) {
dbg_budg("out of indexing space: min_idx_lebs %d (old %d), "
"rsvd_idx_lebs %d", min_idx_lebs, c->bi.min_idx_lebs,
rsvd_idx_lebs);
dbg_budg("out of indexing space: min_idx_lebs %d (old %d), rsvd_idx_lebs %d",
min_idx_lebs, c->bi.min_idx_lebs, rsvd_idx_lebs);
return -ENOSPC;
}

Expand Down
8 changes: 4 additions & 4 deletions fs/ubifs/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ int ubifs_bg_thread(void *info)
int err;
struct ubifs_info *c = info;

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

while (1) {
Expand Down Expand Up @@ -328,7 +328,7 @@ int ubifs_bg_thread(void *info)
cond_resched();
}

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

Expand Down Expand Up @@ -514,7 +514,7 @@ struct idx_node {
struct list_head list;
int iip;
union ubifs_key upper_key;
struct ubifs_idx_node idx __attribute__((aligned(8)));
struct ubifs_idx_node idx __aligned(8);
};

/**
Expand Down
7 changes: 3 additions & 4 deletions fs/ubifs/compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ void ubifs_compress(const void *in_buf, int in_len, void *out_buf, int *out_len,
if (compr->comp_mutex)
mutex_unlock(compr->comp_mutex);
if (unlikely(err)) {
ubifs_warn("cannot compress %d bytes, compressor %s, "
"error %d, leave data uncompressed",
ubifs_warn("cannot compress %d bytes, compressor %s, error %d, leave data uncompressed",
in_len, compr->name, err);
goto no_compr;
}
Expand Down Expand Up @@ -176,8 +175,8 @@ int ubifs_decompress(const void *in_buf, int in_len, void *out_buf,
if (compr->decomp_mutex)
mutex_unlock(compr->decomp_mutex);
if (err)
ubifs_err("cannot decompress %d bytes, compressor %s, "
"error %d", in_len, compr->name, err);
ubifs_err("cannot decompress %d bytes, compressor %s, error %d",
in_len, compr->name, err);

return err;
}
Expand Down
Loading

0 comments on commit 782c3fb

Please sign in to comment.