fixed merge mistake that picked up 2.6.9 rather than 2.6.9-1.11_FC2 code
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 28 Jan 2005 05:16:37 +0000 (05:16 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 28 Jan 2005 05:16:37 +0000 (05:16 +0000)
arch/i386/mm/init.c
fs/ncpfs/file.c
init/main.c
ipc/msg.c
net/core/dev.c
net/ipv4/devinet.c
net/netlink/af_netlink.c
net/sunrpc/svcauth_unix.c

index bf2ee83..4104762 100644 (file)
@@ -225,13 +225,6 @@ static inline int page_is_ram(unsigned long pagenr)
        return 0;
 }
 
-/* To enable modules to check if a page is in RAM */
-int pfn_is_ram(unsigned long pfn)
-{
-       return (page_is_ram(pfn));
-}
-
-
 /*
  * devmem_is_allowed() checks to see if /dev/mem access to a certain address is
  * valid. The argument is a physical page number.
index 701859e..022cd18 100644 (file)
@@ -170,7 +170,7 @@ ncp_file_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
 
        *ppos = pos;
 
-#warning MEF removed some READONLY MOUNT support -- look for it again in vs1.9.3
+       if (!IS_RDONLY(inode) || (file && MNT_IS_RDONLY(file->f_vfsmnt))) {
        file_accessed(file);
 
        DPRINTK("ncp_file_read: exit %s/%s\n",
index 764ff0a..ebc923c 100644 (file)
@@ -533,10 +533,6 @@ asmlinkage void __init start_kernel(void)
        rcu_init();
        init_IRQ();
        pidhash_init();
-       /* MEF: In 2.6.5. ckrm_init was right after pidhash_init() but 
-                before sched_init(). Will leave it after pidhash_init()
-                and cross finger.
-       */
        ckrm_init();
        init_timers();
        softirq_init();
@@ -588,7 +584,6 @@ asmlinkage void __init start_kernel(void)
 #ifdef CONFIG_PROC_FS
        proc_root_init();
 #endif
-
        check_bugs();
 
        acpi_early_init(); /* before LAPIC and SMP init */
@@ -731,7 +726,6 @@ static int init(void * unused)
         * firmware files.
         */
        populate_rootfs();
-
        do_basic_setup();
 
        init_ckrm_sched_res();
index 91e2924..095f2b7 100644 (file)
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -763,6 +763,7 @@ asmlinkage long sys_msgrcv (int msqid, struct msgbuf __user *msgp, size_t msgsz,
                        cpu_relax();
                        msg = (struct msg_msg*) msr_d.r_msg;
                }
+
                /* Lockless receive, part 3:
                 * If there is a message or an error then accept it without
                 * locking.
index e917b51..460463d 100644 (file)
 #include <net/iw_handler.h>
 #endif /* CONFIG_NET_RADIO */
 #include <asm/current.h>
-#include <linux/vs_base.h>
 #include <linux/vs_network.h>
 
 /* This define, if set, will randomly drop a packet when congestion
index 3ad6fee..19eb795 100644 (file)
@@ -1046,7 +1046,6 @@ static int inet_dump_ifaddr(struct sk_buff *skb, struct netlink_callback *cb)
        struct net_device *dev;
        struct in_device *in_dev;
        struct in_ifaddr *ifa;
-       struct sock *sk = skb->sk;
        int s_ip_idx, s_idx = cb->args[0];
 
        s_ip_idx = ip_idx = cb->args[1];
index bba8677..3609139 100644 (file)
@@ -800,8 +800,6 @@ int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 pid,
 
        netlink_trim(skb, allocation);
 
-       netlink_trim(skb, allocation);
-
        /* While we sleep in clone, do not allow to change socket list */
 
        netlink_lock_table();
index fa22061..2832312 100644 (file)
@@ -172,8 +172,6 @@ static int ip_map_parse(struct cache_detail *cd,
        /* class */
        len = qword_get(&mesg, ipm.m_class, sizeof(ipm.m_class));
        if (len <= 0) return -EINVAL;
-       if (len >= sizeof(ipm.m_class))
-               return -EINVAL;
 
        /* ip address */
        len = qword_get(&mesg, buf, mlen);