Skip to content

Commit 192e856

Browse files
Jérôme Glissetorvalds
authored andcommitted
misc/mic/scif: update to new mmu_notifier semantic
Calls to mmu_notifier_invalidate_page() were replaced by calls to mmu_notifier_invalidate_range() and are now bracketed by calls to mmu_notifier_invalidate_range_start()/end() Remove now useless invalidate_page callback. Signed-off-by: Jérôme Glisse <[email protected]> Cc: Sudeep Dutt <[email protected]> Cc: Ashutosh Dixit <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Andrea Arcangeli <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 30ef7d2 commit 192e856

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/misc/mic/scif/scif_dma.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,6 @@ static void scif_mmu_notifier_release(struct mmu_notifier *mn,
200200
schedule_work(&scif_info.misc_work);
201201
}
202202

203-
static void scif_mmu_notifier_invalidate_page(struct mmu_notifier *mn,
204-
struct mm_struct *mm,
205-
unsigned long address)
206-
{
207-
struct scif_mmu_notif *mmn;
208-
209-
mmn = container_of(mn, struct scif_mmu_notif, ep_mmu_notifier);
210-
scif_rma_destroy_tcw(mmn, address, PAGE_SIZE);
211-
}
212-
213203
static void scif_mmu_notifier_invalidate_range_start(struct mmu_notifier *mn,
214204
struct mm_struct *mm,
215205
unsigned long start,
@@ -235,7 +225,6 @@ static void scif_mmu_notifier_invalidate_range_end(struct mmu_notifier *mn,
235225
static const struct mmu_notifier_ops scif_mmu_notifier_ops = {
236226
.release = scif_mmu_notifier_release,
237227
.clear_flush_young = NULL,
238-
.invalidate_page = scif_mmu_notifier_invalidate_page,
239228
.invalidate_range_start = scif_mmu_notifier_invalidate_range_start,
240229
.invalidate_range_end = scif_mmu_notifier_invalidate_range_end};
241230

0 commit comments

Comments
 (0)