diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2014-02-21 04:02:57 +0900 |
---|---|---|
committer | Daniel Phillips <daniel@tux3.org> | 2014-02-21 04:02:57 +0900 |
commit | 54bffed5a01f9aad6df2a0205a055f6336788e69 (patch) | |
tree | 7344b3751db864a428ef3a164d5074bae5dadb6a | |
parent | c4068c5bde6baac70df53147c8d3ba2b70836323 (diff) | |
download | linux-tux3-54bffed5a01f9aad6df2a0205a055f6336788e69.tar.gz |
tux3: Update clone_page() for kernel kernel v3.13
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-rw-r--r-- | fs/tux3/buffer_fork.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/tux3/buffer_fork.c b/fs/tux3/buffer_fork.c index 1c62845cdcf9f3..198fac225e7f74 100644 --- a/fs/tux3/buffer_fork.c +++ b/fs/tux3/buffer_fork.c @@ -334,6 +334,13 @@ static struct page *clone_page(struct page *oldpage, unsigned blocksize) SetPageMappedToDisk(newpage); #if 0 /* FIXME: need? */ + /* + * Copy NUMA information to the new page, to prevent over-eager + * future migrations of this same page. + */ + cpupid = page_cpupid_xchg_last(oldpage, -1); + page_cpupid_xchg_last(newpage, cpupid); + mlock_migrate_page(newpage, page); ksm_migrate_page(newpage, page); #endif |