diff options
-rw-r--r-- | block/Kconfig | 13 | ||||
-rw-r--r-- | fs/block_dev.c | 6 |
2 files changed, 1 insertions, 18 deletions
diff --git a/block/Kconfig b/block/Kconfig index 0363cd731320..161491d0a879 100644 --- a/block/Kconfig +++ b/block/Kconfig | |||
@@ -88,19 +88,6 @@ config BLK_DEV_INTEGRITY | |||
88 | T10/SCSI Data Integrity Field or the T13/ATA External Path | 88 | T10/SCSI Data Integrity Field or the T13/ATA External Path |
89 | Protection. If in doubt, say N. | 89 | Protection. If in doubt, say N. |
90 | 90 | ||
91 | config BLK_DEV_DAX | ||
92 | bool "Block device DAX support" | ||
93 | depends on FS_DAX | ||
94 | depends on BROKEN | ||
95 | help | ||
96 | When DAX support is available (CONFIG_FS_DAX) raw block | ||
97 | devices can also support direct userspace access to the | ||
98 | storage capacity via MMAP(2) similar to a file on a | ||
99 | DAX-enabled filesystem. However, the DAX I/O-path disables | ||
100 | some standard I/O-statistics, and the MMAP(2) path has some | ||
101 | operational differences due to bypassing the page | ||
102 | cache. If in doubt, say N. | ||
103 | |||
104 | config BLK_DEV_THROTTLING | 91 | config BLK_DEV_THROTTLING |
105 | bool "Block layer bio throttling support" | 92 | bool "Block layer bio throttling support" |
106 | depends on BLK_CGROUP=y | 93 | depends on BLK_CGROUP=y |
diff --git a/fs/block_dev.c b/fs/block_dev.c index ada42cf42d06..2033a3f91d58 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -1275,11 +1275,7 @@ static int __blkdev_get(struct block_device *bdev, fmode_t mode, int for_part) | |||
1275 | bdev->bd_disk = disk; | 1275 | bdev->bd_disk = disk; |
1276 | bdev->bd_queue = disk->queue; | 1276 | bdev->bd_queue = disk->queue; |
1277 | bdev->bd_contains = bdev; | 1277 | bdev->bd_contains = bdev; |
1278 | if (IS_ENABLED(CONFIG_BLK_DEV_DAX) && | 1278 | bdev->bd_inode->i_flags = 0; |
1279 | blk_queue_dax(disk->queue)) | ||
1280 | bdev->bd_inode->i_flags = S_DAX; | ||
1281 | else | ||
1282 | bdev->bd_inode->i_flags = 0; | ||
1283 | 1279 | ||
1284 | if (!partno) { | 1280 | if (!partno) { |
1285 | ret = -ENXIO; | 1281 | ret = -ENXIO; |