[patch-2.3.99-pre7-4] sys_mount() optimization

From: Tigran Aivazian (tigran@veritas.com)
Date: Thu May 04 2000 - 09:07:16 EST


Hi Linus,

The zero initialization of data_page/type_page/dev_page in sys_mount() is
not needed as copy_mount_options() initialises the value second argument
points to to 0 unconditionally.

Regards,
Tigran

--- linux/fs/super.c Thu May 4 08:24:56 2000
+++ work/fs/super.c Thu May 4 14:58:54 2000
@@ -1219,9 +1219,9 @@
                           unsigned long new_flags, void * data)
 {
         int retval;
- unsigned long data_page = 0;
- unsigned long type_page = 0;
- unsigned long dev_page = 0;
+ unsigned long data_page;
+ unsigned long type_page;
+ unsigned long dev_page;
         char *dir_page;
 
         lock_kernel();

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:14 EST