]> git.karo-electronics.de Git - karo-tx-linux.git/commit
But we've not yet removed the old swp_entry_t i_direct[16] from
authorHugh Dickins <hughd@google.com>
Wed, 3 Aug 2011 00:52:54 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Aug 2011 02:50:42 +0000 (12:50 +1000)
commitdfb9662c32a4dae3c7ed943e29ea5ccb09e4cb05
treef9f99aefb7604d262f0261ecd9a53d47d16798d8
parent902405369b7167b0475bae3c721f6573a569ebef
But we've not yet removed the old swp_entry_t i_direct[16] from
shmem_inode_info.  That's because it was still being shared with the
inline symlink.  Remove it now (saving 64 or 128 bytes from shmem inode
size), and use kmemdup() for short symlinks, say, those up to 128 bytes.

I wonder why mpol_free_shared_policy() is done in shmem_destroy_inode()
rather than shmem_evict_inode(), where we usually do such freeing?  I
guess it doesn't matter, and I'm not into NUMA mpol testing right now.

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/shmem_fs.h
mm/shmem.c