]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] removal of ifdef MODULE from fs/openpromfs
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 26 Feb 2004 01:38:31 +0000 (17:38 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Feb 2004 01:38:31 +0000 (17:38 -0800)
Removes gratitious ifdefs - get_nodes() is only called from __init
and by itself, check_space() is only called by get_nodes(), so they can
be made unconditionally __init.

fs/openpromfs/inode.c

index 700104cb5619c1f7d08638d8e8740d1ff62be0f8..d77c3c6c06f2f1647ca67f899468528bac441332 100644 (file)
@@ -921,11 +921,7 @@ static int openpromfs_unlink (struct inode *dir, struct dentry *dentry)
 }
 
 /* {{{ init section */
-#ifndef MODULE
 static int __init check_space (u16 n)
-#else
-static int check_space (u16 n)
-#endif
 {
        unsigned long pages;
 
@@ -945,11 +941,7 @@ static int check_space (u16 n)
        return 0;
 }
 
-#ifndef MODULE
 static u16 __init get_nodes (u16 parent, u32 node)
-#else
-static u16 get_nodes (u16 parent, u32 node)
-#endif
 {
        char *p;
        u16 n = last_node++, i;
@@ -1035,6 +1027,7 @@ static int openprom_fill_super(struct super_block *s, void *data, int silent)
 {
        struct inode * root_inode;
 
+       s->s_flags |= MS_NODIRATIME;
        s->s_blocksize = 1024;
        s->s_blocksize_bits = 10;
        s->s_magic = OPENPROM_SUPER_MAGIC;