All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.5 [2 of 8] 02-savelink_nospace_nowarning.diff
@ 2002-02-11 14:24 Oleg Drokin on behalf of Hans Reiser
  0 siblings, 0 replies; only message in thread
From: Oleg Drokin on behalf of Hans Reiser @ 2002-02-11 14:24 UTC (permalink / raw)
  To: torvalds, linux-kernel, reiserfs-dev

Hello!

   Do not print a warning if savelink was not created due to lack of space.

--- linux/fs/reiserfs/super.c.orig	Mon Feb 11 09:55:00 2002
+++ linux/fs/reiserfs/super.c	Mon Feb 11 09:55:58 2002
@@ -296,10 +296,11 @@
 
     /* 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-11 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-11 14:24 [PATCH] 2.5 [2 of 8] 02-savelink_nospace_nowarning.diff Oleg Drokin on behalf of Hans Reiser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.