History

mm/hmm: replace the block argument to hmm_range_fault with a flags value

This allows easier expansion to other flags, and also makes the callers a little easier to read.

Christoph Hellwig committed 7 years ago

Commit 9a4903e1 parent d2e8d554 files · +48 −41Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/hmm.h+9−2
@@ -407,12 +407,19 @@ int hmm_range_register(struct hmm_range *range, · 406 unmodified lines
407407 unsigned long end,
408408 unsigned page_shift);
409409 void hmm_range_unregister(struct hmm_range *range);
410+
411+/*
412+ * Retry fault if non-blocking, drop mmap_sem and return -EAGAIN in that case.
413+ */
414+#define HMM_FAULT_ALLOW_RETRY (1 << 0)
415+
410416 long hmm_range_snapshot(struct hmm_range *range);
411−long hmm_range_fault(struct hmm_range *range, bool block);
417+long hmm_range_fault(struct hmm_range *range, unsigned int flags);
418+
412419 long hmm_range_dma_map(struct hmm_range *range,
413420 struct device *device,
414421 dma_addr_t *daddrs,
415− bool block);
422+ unsigned int flags);
416423 long hmm_range_dma_unmap(struct hmm_range *range,
417424 struct vm_area_struct *vma,
418425 struct device *device,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t