Commit a921332a authored by Hans Reiser's avatar Hans Reiser Committed by Linus Torvalds

[PATCH] reiserfs patchset, patch 7 of 9 07-remove_nospace_warnings.diff

07-remove_nospace_warnings.diff
    Do not print scary warnings in out of free space situations.
parent 2a78672f
...@@ -743,7 +743,8 @@ int reiserfs_get_block (struct inode * inode, sector_t block, ...@@ -743,7 +743,8 @@ int reiserfs_get_block (struct inode * inode, sector_t block,
retval = convert_tail_for_hole(inode, bh_result, tail_offset) ; retval = convert_tail_for_hole(inode, bh_result, tail_offset) ;
if (retval) { if (retval) {
printk("clm-6004: convert tail failed inode %lu, error %d\n", inode->i_ino, retval) ; if ( retval != -ENOSPC )
printk("clm-6004: convert tail failed inode %lu, error %d\n", inode->i_ino, retval) ;
if (allocated_block_nr) if (allocated_block_nr)
reiserfs_free_block (&th, allocated_block_nr); reiserfs_free_block (&th, allocated_block_nr);
goto failure ; goto failure ;
......
...@@ -1338,8 +1338,10 @@ void reiserfs_delete_solid_item (struct reiserfs_transaction_handle *th, ...@@ -1338,8 +1338,10 @@ void reiserfs_delete_solid_item (struct reiserfs_transaction_handle *th,
} }
if (retval != ITEM_FOUND) { if (retval != ITEM_FOUND) {
pathrelse (&path); pathrelse (&path);
reiserfs_warning ("vs-5355: reiserfs_delete_solid_item: %k not found", // No need for a warning, if there is just no free space to insert '..' item into the newly-created subdir
key); if ( !( (unsigned long long) GET_HASH_VALUE (le_key_k_offset (le_key_version (key), key)) == 0 && \
(unsigned long long) GET_GENERATION_NUMBER (le_key_k_offset (le_key_version (key), key)) == 1 ) )
reiserfs_warning ("vs-5355: reiserfs_delete_solid_item: %k not found", key);
break; break;
} }
if (!tb_init) { if (!tb_init) {
......
...@@ -284,7 +284,8 @@ void add_save_link (struct reiserfs_transaction_handle * th, ...@@ -284,7 +284,8 @@ void add_save_link (struct reiserfs_transaction_handle * th,
/* look for its place in the tree */ /* look for its place in the tree */
retval = search_item (inode->i_sb, &key, &path); retval = search_item (inode->i_sb, &key, &path);
if (retval != ITEM_NOT_FOUND) { if (retval != ITEM_NOT_FOUND) {
reiserfs_warning ("vs-2100: add_save_link:" if ( retval != -ENOSPC )
reiserfs_warning ("vs-2100: add_save_link:"
"search_by_key (%K) returned %d\n", &key, retval); "search_by_key (%K) returned %d\n", &key, retval);
pathrelse (&path); pathrelse (&path);
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment