Fix PAGE SIZE assumption in miscellaneous places. Signed-off-by: Christoph Lameter --- kernel/container.c | 4 ++-- kernel/futex.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) Index: linux-2.6.22-rc6-mm1/kernel/futex.c =================================================================== --- linux-2.6.22-rc6-mm1.orig/kernel/futex.c 2007-07-03 17:19:28.000000000 -0700 +++ linux-2.6.22-rc6-mm1/kernel/futex.c 2007-07-03 17:41:46.000000000 -0700 @@ -258,7 +258,7 @@ int get_futex_key(u32 __user *uaddr, str err = get_user_pages(current, mm, address, 1, 0, 0, &page, NULL); if (err >= 0) { key->shared.pgoff = - page->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT); + page->index << (compound_order(page) - PAGE_SHIFT); put_page(page); return 0; } Index: linux-2.6.22-rc6-mm1/kernel/container.c =================================================================== --- linux-2.6.22-rc6-mm1.orig/kernel/container.c 2007-07-03 17:19:28.000000000 -0700 +++ linux-2.6.22-rc6-mm1/kernel/container.c 2007-07-03 17:41:46.000000000 -0700 @@ -842,8 +842,8 @@ static int container_fill_super(struct s struct dentry *root; struct containerfs_root *hroot = options; - sb->s_blocksize = PAGE_CACHE_SIZE; - sb->s_blocksize_bits = PAGE_CACHE_SHIFT; + sb->s_blocksize = PAGE_SIZE; + sb->s_blocksize_bits = PAGE_SHIFT; sb->s_magic = CONTAINER_SUPER_MAGIC; sb->s_op = &container_ops;