aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/super.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2009-03-30 14:02:28 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-30 15:16:37 -0400
commit0030b64570c862f04c1550ba4a0bf7a9c128162a (patch)
tree811b8eec4a417983ad1e5b51f44194f9cc98496d /fs/reiserfs/super.c
parent1e5e59d431038c53954fe8f0b38bee0f0ad30349 (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/super.c')
-rw-r--r--fs/reiserfs/super.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index bfc276c8e978..fc7cb4661ee0 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -195,9 +195,8 @@ static int finish_unfinished(struct super_block *s)
195 while (!retval) { 195 while (!retval) {
196 retval = search_item(s, &max_cpu_key, &path); 196 retval = search_item(s, &max_cpu_key, &path);
197 if (retval != ITEM_NOT_FOUND) { 197 if (retval != ITEM_NOT_FOUND) {
198 reiserfs_warning(s, "vs-2140", 198 reiserfs_error(s, "vs-2140",
199 "search_by_key returned %d", 199 "search_by_key returned %d", retval);
200 retval);
201 break; 200 break;
202 } 201 }
203 202
@@ -378,9 +377,9 @@ void add_save_link(struct reiserfs_transaction_handle *th,
378 retval = search_item(inode->i_sb, &key, &path); 377 retval = search_item(inode->i_sb, &key, &path);
379 if (retval != ITEM_NOT_FOUND) { 378 if (retval != ITEM_NOT_FOUND) {
380 if (retval != -ENOSPC) 379 if (retval != -ENOSPC)
381 reiserfs_warning(inode->i_sb, "vs-2100", 380 reiserfs_error(inode->i_sb, "vs-2100",
382 "search_by_key (%K) returned %d", &key, 381 "search_by_key (%K) returned %d", &key,
383 retval); 382 retval);
384 pathrelse(&path); 383 pathrelse(&path);
385 return; 384 return;
386 } 385 }
@@ -393,8 +392,8 @@ void add_save_link(struct reiserfs_transaction_handle *th,
393 reiserfs_insert_item(th, &path, &key, &ih, NULL, (char *)&link); 392 reiserfs_insert_item(th, &path, &key, &ih, NULL, (char *)&link);
394 if (retval) { 393 if (retval) {
395 if (retval != -ENOSPC) 394 if (retval != -ENOSPC)
396 reiserfs_warning(inode->i_sb, "vs-2120", 395 reiserfs_error(inode->i_sb, "vs-2120",
397 "insert_item returned %d", retval); 396 "insert_item returned %d", retval);
398 } else { 397 } else {
399 if (truncate) 398 if (truncate)
400 REISERFS_I(inode)->i_flags |= 399 REISERFS_I(inode)->i_flags |=