Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs/dax: remove FS_DAX_LIMITED config option

The dcssblk driver was the last user of FS_DAX_LIMITED. That was marked
broken by 653d7825c149 ("dcssblk: mark DAX broken, remove FS_DAX_LIMITED
support") to allow removal of PFN_SPECIAL. However the FS_DAX_LIMITED
config option itself was not removed, so do that now.

Link: https://lkml.kernel.org/r/b47bf164b4a1013d736fa1a3d501bc8b8e71311f.1750323463.git-series.apopple@nvidia.com
Signed-off-by: Alistair Popple <apopple@nvidia.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Balbir Singh <balbirs@nvidia.com>
Cc: Björn Töpel <bjorn@kernel.org>
Cc: Björn Töpel <bjorn@rivosinc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Deepak Gupta <debug@rivosinc.com>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Cc: Inki Dae <m.szyprowski@samsung.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: John Groves <john@groves.net>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Alistair Popple and committed by
Andrew Morton
28dc88c3 bea0cc7c

+1 -24
+1 -8
fs/Kconfig
··· 59 59 config FS_DAX 60 60 bool "File system based Direct Access (DAX) support" 61 61 depends on MMU 62 - depends on ZONE_DEVICE || FS_DAX_LIMITED 62 + depends on ZONE_DEVICE 63 63 select FS_IOMAP 64 64 select DAX 65 65 help ··· 94 94 depends on FS_DAX 95 95 depends on ZONE_DEVICE 96 96 depends on TRANSPARENT_HUGEPAGE 97 - 98 - # Selected by DAX drivers that do not expect filesystem DAX to support 99 - # get_user_pages() of DAX mappings. I.e. "limited" indicates no support 100 - # for fork() of processes with MAP_SHARED mappings or support for 101 - # direct-I/O to a DAX mapping. 102 - config FS_DAX_LIMITED 103 - bool 104 97 105 98 # Posix ACL utility routines 106 99 #
-12
fs/dax.c
··· 449 449 if (dax_is_zero_entry(entry) || dax_is_empty_entry(entry)) 450 450 return; 451 451 452 - if (IS_ENABLED(CONFIG_FS_DAX_LIMITED)) 453 - return; 454 - 455 452 index = linear_page_index(vma, address & ~(size - 1)); 456 453 if (shared && (folio->mapping || dax_folio_is_shared(folio))) { 457 454 if (folio->mapping) ··· 470 473 bool trunc) 471 474 { 472 475 struct folio *folio = dax_to_folio(entry); 473 - 474 - if (IS_ENABLED(CONFIG_FS_DAX_LIMITED)) 475 - return; 476 476 477 477 if (dax_is_zero_entry(entry) || dax_is_empty_entry(entry)) 478 478 return; ··· 761 767 pgoff_t start_idx = start >> PAGE_SHIFT; 762 768 pgoff_t end_idx; 763 769 XA_STATE(xas, &mapping->i_pages, start_idx); 764 - 765 - /* 766 - * In the 'limited' case get_user_pages() for dax is disabled. 767 - */ 768 - if (IS_ENABLED(CONFIG_FS_DAX_LIMITED)) 769 - return NULL; 770 770 771 771 if (!dax_mapping(mapping)) 772 772 return NULL;
-4
mm/memremap.c
··· 332 332 } 333 333 break; 334 334 case MEMORY_DEVICE_FS_DAX: 335 - if (IS_ENABLED(CONFIG_FS_DAX_LIMITED)) { 336 - WARN(1, "File system DAX not supported\n"); 337 - return ERR_PTR(-EINVAL); 338 - } 339 335 params.pgprot = pgprot_decrypted(params.pgprot); 340 336 break; 341 337 case MEMORY_DEVICE_GENERIC: