Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
 
 config NFSD_BLOCKLAYOUT
        bool "NFSv4.1 server support for pNFS block layouts"
-       depends on NFSD_V4
+       depends on NFSD_V4 && BLOCK
        select NFSD_PNFS
        help
          This option enables support for the exporting pNFS block layouts
 
 config NFSD_SCSILAYOUT
        bool "NFSv4.1 server support for pNFS SCSI layouts"
-       depends on NFSD_V4
+       depends on NFSD_V4 && BLOCK
        select NFSD_PNFS
        help
          This option enables support for the exporting pNFS SCSI layouts