]> Pileus Git - ~andy/linux/blobdiff - fs/nfs/super.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile
[~andy/linux] / fs / nfs / super.c
index e05a77be306850a484212e39aeda4b24daebbc87..d6686f4786dc55b5d5f06afe913e2930f2b45b96 100644 (file)
@@ -465,14 +465,12 @@ static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss,
        switch (sap->sa_family) {
        case AF_INET: {
                struct sockaddr_in *sin = (struct sockaddr_in *)sap;
-               seq_printf(m, ",mountaddr=" NIPQUAD_FMT,
-                               NIPQUAD(sin->sin_addr.s_addr));
+               seq_printf(m, ",mountaddr=%pI4", &sin->sin_addr.s_addr);
                break;
        }
        case AF_INET6: {
                struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
-               seq_printf(m, ",mountaddr=" NIP6_FMT,
-                               NIP6(sin6->sin6_addr));
+               seq_printf(m, ",mountaddr=%pI6", &sin6->sin6_addr);
                break;
        }
        default:
@@ -1345,6 +1343,7 @@ static int nfs_try_mount(struct nfs_parsed_mount_data *args,
                .dirpath        = args->nfs_server.export_path,
                .protocol       = args->mount_server.protocol,
                .fh             = root_fh,
+               .noresvport     = args->flags & NFS_MOUNT_NORESVPORT,
        };
        int status;
 
@@ -2432,7 +2431,7 @@ static void nfs4_kill_super(struct super_block *sb)
 {
        struct nfs_server *server = NFS_SB(sb);
 
-       nfs_return_all_delegations(sb);
+       nfs_super_return_all_delegations(sb);
        kill_anon_super(sb);
 
        nfs4_renewd_prepare_shutdown(server);