Commit 6a2dcf11 authored by Hans Reiser's avatar Hans Reiser Committed by Linus Torvalds

[PATCH] 02-savelink_nospace_nowarning.diff

   Do not print a warning if savelink was not created due to lack of space.
parent e3eea6fd
...@@ -296,10 +296,11 @@ void add_save_link (struct reiserfs_transaction_handle * th, ...@@ -296,10 +296,11 @@ void add_save_link (struct reiserfs_transaction_handle * th,
/* put "save" link inot tree */ /* put "save" link inot tree */
retval = reiserfs_insert_item (th, &path, &key, &ih, (char *)&link); retval = reiserfs_insert_item (th, &path, &key, &ih, (char *)&link);
if (retval) if (retval) {
reiserfs_warning ("vs-2120: add_save_link: insert_item returned %d\n", if (retval != -ENOSPC)
reiserfs_warning ("vs-2120: add_save_link: insert_item returned %d\n",
retval); retval);
else { } else {
if( truncate ) if( truncate )
REISERFS_I(inode) -> i_flags |= i_link_saved_truncate_mask; REISERFS_I(inode) -> i_flags |= i_link_saved_truncate_mask;
else else
......
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