public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.0.39] put_last_free() defined, but not used
@ 2004-01-25 19:23 Coywolf Qi Hunt
  2004-01-25 22:29 ` David Weinehall
  0 siblings, 1 reply; 15+ messages in thread
From: Coywolf Qi Hunt @ 2004-01-25 19:23 UTC (permalink / raw)
  To: tao, linux-kernel

Hello,

In 2.0.39, the function put_last_free() in fs/file_table.c is defined, 
but no longer get used.
Should it be removed?

thanks


--- fs/file_table.c.orig    1994-10-21 07:39:36.000000000 +0800
+++ fs/file_table.c    2004-01-26 03:10:38.000000000 +0800
@@ -52,20 +52,6 @@
     prev->f_next = next;
 }
 
-/*
- * Insert a file structure at the end of the list of available ones.
- */
-static inline void put_last_free(struct file *file)
-{
-    struct file *next, *prev;
-
-    next = first_file;
-    file->f_next = next;
-    prev = next->f_prev;
-    next->f_prev = file;
-    file->f_prev = prev;
-    prev->f_next = file;
-}
 
 /*
  * Allocate a new memory page for file structures and


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-03-03 13:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-25 19:23 [PATCH 2.0.39] put_last_free() defined, but not used Coywolf Qi Hunt
2004-01-25 22:29 ` David Weinehall
2004-01-25 23:43   ` Jens Axboe
2004-01-26  2:01     ` David Weinehall
2004-01-27 17:10   ` [2.0.40-rc8] Works well Markus Hästbacka
2004-01-27 17:38     ` David Weinehall
2004-01-28  3:28     ` Coywolf Qi Hunt
2004-01-28  3:37       ` David Weinehall
2004-01-28  6:13         ` Markus Hästbacka
2004-01-28 15:17           ` David Weinehall
2004-01-28 23:37             ` Markus Hästbacka
2004-01-28 23:50               ` David Weinehall
2004-02-23  6:28         ` about 2.0 cleanup or adaption Coywolf Qi Hunt
2004-03-03 13:38         ` [PATCH 2.0.40] Fix comment error of prepare_binprm() in exec.c Coywolf Qi Hunt
2004-03-03 13:51           ` David Weinehall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox