diff options
-rw-r--r-- | fs/nfsd/nfs3proc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfsd/nfs3proc.c b/fs/nfsd/nfs3proc.c index 9dbd2eb91281..579ce8c69daa 100644 --- a/fs/nfsd/nfs3proc.c +++ b/fs/nfsd/nfs3proc.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/unistd.h> | 18 | #include <linux/unistd.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/major.h> | 20 | #include <linux/major.h> |
21 | #include <linux/magic.h> | ||
21 | 22 | ||
22 | #include <linux/sunrpc/svc.h> | 23 | #include <linux/sunrpc/svc.h> |
23 | #include <linux/nfsd/nfsd.h> | 24 | #include <linux/nfsd/nfsd.h> |
@@ -569,7 +570,7 @@ nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | |||
569 | struct super_block *sb = argp->fh.fh_dentry->d_inode->i_sb; | 570 | struct super_block *sb = argp->fh.fh_dentry->d_inode->i_sb; |
570 | 571 | ||
571 | /* Note that we don't care for remote fs's here */ | 572 | /* Note that we don't care for remote fs's here */ |
572 | if (sb->s_magic == 0x4d44 /* MSDOS_SUPER_MAGIC */) { | 573 | if (sb->s_magic == MSDOS_SUPER_MAGIC) { |
573 | resp->f_properties = NFS3_FSF_BILLYBOY; | 574 | resp->f_properties = NFS3_FSF_BILLYBOY; |
574 | } | 575 | } |
575 | resp->f_maxfilesize = sb->s_maxbytes; | 576 | resp->f_maxfilesize = sb->s_maxbytes; |
@@ -610,7 +611,7 @@ nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | |||
610 | resp->p_link_max = EXT2_LINK_MAX; | 611 | resp->p_link_max = EXT2_LINK_MAX; |
611 | resp->p_name_max = EXT2_NAME_LEN; | 612 | resp->p_name_max = EXT2_NAME_LEN; |
612 | break; | 613 | break; |
613 | case 0x4d44: /* MSDOS_SUPER_MAGIC */ | 614 | case MSDOS_SUPER_MAGIC: |
614 | resp->p_case_insensitive = 1; | 615 | resp->p_case_insensitive = 1; |
615 | resp->p_case_preserving = 0; | 616 | resp->p_case_preserving = 0; |
616 | break; | 617 | break; |