Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef277c73 authored by Tang Chen's avatar Tang Chen Committed by Linus Torvalds
Browse files

page migration: fix wrong comment in address_space_operations.migratepage()



There is no parameter "sync" in address_space_operations->migratepage().
It should be migrate_mode.  And the comment is for MIGRATE_ASYNC.

Signed-off-by: default avatarTang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bcb615a8
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -372,8 +372,8 @@ struct address_space_operations {
	int (*get_xip_mem)(struct address_space *, pgoff_t, int,
	int (*get_xip_mem)(struct address_space *, pgoff_t, int,
						void **, unsigned long *);
						void **, unsigned long *);
	/*
	/*
	 * migrate the contents of a page to the specified target. If sync
	 * migrate the contents of a page to the specified target. If
	 * is false, it must not block.
	 * migrate_mode is MIGRATE_ASYNC, it must not block.
	 */
	 */
	int (*migratepage) (struct address_space *,
	int (*migratepage) (struct address_space *,
			struct page *, struct page *, enum migrate_mode);
			struct page *, struct page *, enum migrate_mode);