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,
/* put "save" link inot tree */
retval = reiserfs_insert_item (th, &path, &key, &ih, (char *)&link);
if (retval)
reiserfs_warning ("vs-2120: add_save_link: insert_item returned %d\n",
if (retval) {
if (retval != -ENOSPC)
reiserfs_warning ("vs-2120: add_save_link: insert_item returned %d\n",
retval);
else {
} else {
if( truncate )
REISERFS_I(inode) -> i_flags |= i_link_saved_truncate_mask;
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