diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-03-30 14:02:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 15:16:37 -0400 |
commit | 0030b64570c862f04c1550ba4a0bf7a9c128162a (patch) | |
tree | 811b8eec4a417983ad1e5b51f44194f9cc98496d /fs/reiserfs/lbalance.c | |
parent | 1e5e59d431038c53954fe8f0b38bee0f0ad30349 (diff) |
reiserfs: use reiserfs_error()
This patch makes many paths that are currently using warnings to handle
the error.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs/lbalance.c')
-rw-r--r-- | fs/reiserfs/lbalance.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/reiserfs/lbalance.c b/fs/reiserfs/lbalance.c index 67f1d1de213d..21a171ceba1d 100644 --- a/fs/reiserfs/lbalance.c +++ b/fs/reiserfs/lbalance.c | |||
@@ -1291,17 +1291,17 @@ void leaf_paste_entries(struct buffer_info *bi, | |||
1291 | prev = (i != 0) ? deh_location(&(deh[i - 1])) : 0; | 1291 | prev = (i != 0) ? deh_location(&(deh[i - 1])) : 0; |
1292 | 1292 | ||
1293 | if (prev && prev <= deh_location(&(deh[i]))) | 1293 | if (prev && prev <= deh_location(&(deh[i]))) |
1294 | reiserfs_warning(NULL, "vs-10240", | 1294 | reiserfs_error(sb_from_bi(bi), "vs-10240", |
1295 | "directory item (%h) " | 1295 | "directory item (%h) " |
1296 | "corrupted (prev %a, " | 1296 | "corrupted (prev %a, " |
1297 | "cur(%d) %a)", | 1297 | "cur(%d) %a)", |
1298 | ih, deh + i - 1, i, deh + i); | 1298 | ih, deh + i - 1, i, deh + i); |
1299 | if (next && next >= deh_location(&(deh[i]))) | 1299 | if (next && next >= deh_location(&(deh[i]))) |
1300 | reiserfs_warning(NULL, "vs-10250", | 1300 | reiserfs_error(sb_from_bi(bi), "vs-10250", |
1301 | "directory item (%h) " | 1301 | "directory item (%h) " |
1302 | "corrupted (cur(%d) %a, " | 1302 | "corrupted (cur(%d) %a, " |
1303 | "next %a)", | 1303 | "next %a)", |
1304 | ih, i, deh + i, deh + i + 1); | 1304 | ih, i, deh + i, deh + i + 1); |
1305 | } | 1305 | } |
1306 | } | 1306 | } |
1307 | #endif | 1307 | #endif |