linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] device-dax: fix unaligned munmap handling
@ 2017-11-21 22:42 Dan Williams
  2017-11-21 22:43 ` [PATCH 1/2] mm, hugetlbfs: introduce ->split() to vm_operations_struct Dan Williams
  2017-11-21 22:43 ` [PATCH 2/2] device-dax: implement ->split() to catch invalid munmap attempts Dan Williams
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Williams @ 2017-11-21 22:42 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, Jeff Moyer, stable, linux-nvdimm

Hi Andrew,

Here is another device-dax fix that requires touching some mm code. When
device-dax is operating in huge-page mode we want it to behave like
hugetlbfs and fail attempts to split vmas into unaligned ranges. It
would be messy to teach the munmap path about device-dax alignment
constraints in the same (hstate) way that hugetlbfs communicates this
constraint. Instead, these patches introduce a new ->split() vm
operation.

---

Dan Williams (2):
      mm, hugetlbfs: introduce ->split() to vm_operations_struct
      device-dax: implement ->split() to catch invalid munmap attempts


 drivers/dax/device.c |   12 ++++++++++++
 include/linux/mm.h   |    1 +
 mm/hugetlb.c         |    8 ++++++++
 mm/mmap.c            |    8 +++++---
 4 files changed, 26 insertions(+), 3 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-21 22:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-21 22:42 [PATCH 0/2] device-dax: fix unaligned munmap handling Dan Williams
2017-11-21 22:43 ` [PATCH 1/2] mm, hugetlbfs: introduce ->split() to vm_operations_struct Dan Williams
2017-11-21 22:43 ` [PATCH 2/2] device-dax: implement ->split() to catch invalid munmap attempts Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox