[PATCH] include/linux/nfsd/const.h: remove NFS_SUPER_MAGIC
[sfrench/cifs-2.6.git] / fs / nfs / super.c
index 28659a919d6e47e5dfcf4ec3a0bdc7e827b4d477..76b980097621c59324a8304b5bcac824dd391a5d 100644 (file)
@@ -44,6 +44,7 @@
 #include <linux/vfs.h>
 #include <linux/inet.h>
 #include <linux/nfs_xdr.h>
+#include <linux/magic.h>
 
 #include <asm/system.h>
 #include <asm/uaccess.h>
@@ -834,7 +835,7 @@ static int nfs4_get_sb(struct file_system_type *fs_type,
        }
        /* RFC3530: The default port for NFS is 2049 */
        if (addr.sin_port == 0)
-               addr.sin_port = NFS_PORT;
+               addr.sin_port = htons(NFS_PORT);
 
        /* Grab the authentication type */
        authflavour = RPC_AUTH_UNIX;