posix_acl-uninlining.patch removed from -mm tree
Subject: [merged] posix_acl-uninlining.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 22 Jan 2014 12:12:05 -0800
The patch titled
Subject: posix_acl: uninlining
has been removed from the -mm tree. Its filename was
posix_acl-uninlining.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: posix_acl: uninlining
Uninline vast tracts of nested inline functions in include/linux/posix_acl.h.
This reduces the text+data+bss size of x86_64 allyesconfig vmlinux by 8026 bytes.
The patch also regularises the positioning of the EXPORT_SYMBOLs in posix_acl.c.
---
fs/posix_acl.c | 84 +++++++++++++++++++++++++++++++++--- include/linux/posix_acl.h | 78 ++------------------------------- 2 files changed, 85 insertions(+), 77 deletions(-)
fs/posix_acl.c renamed from fs/posix_acl.c~posix_acl-uninlining +79 -5
@@ -22,11 +22,80 @@#include <linux/errno.h> -EXPORT_SYMBOL (posix_acl_init); -EXPORT_SYMBOL (posix_acl_alloc); -EXPORT_SYMBOL (posix_acl_valid); -EXPORT_SYMBOL (posix_acl_equiv_mode); -EXPORT_SYMBOL (posix_acl_from_mode); +struct posix_acl **acl_by_type (struct inode *inode,int type) +{ +switch (type) { +case ACL_TYPE_ACCESS : +return &inode->i_acl; +case ACL_TYPE_DEFAULT : +return &inode->i_default_acl; +default : +BUG (); + } +} +EXPORT_SYMBOL (acl_by_type); + +struct posix_acl *get_cached_acl (struct inode *inode,int type) +{ +struct posix_acl **p =acl_by_type (inode, type); +struct posix_acl *acl =ACCESS_ONCE (*p); +if (acl) { +spin_lock (&inode->i_lock); + acl = *p; +if (acl !=ACL_NOT_CACHED ) + acl =posix_acl_dup (acl); +spin_unlock (&inode->i_lock); + } +return acl; +} +EXPORT_SYMBOL (get_cached_acl); + +struct posix_acl *get_cached_acl_rcu (struct inode *inode,int type) +{ +return rcu_dereference (*acl_by_type (inode, type)); +} +EXPORT_SYMBOL (get_cached_acl_rcu); + +void set_cached_acl (struct inode *inode,int type,struct posix_acl *acl) +{ +struct posix_acl **p =acl_by_type (inode, type); +struct posix_acl *old; +spin_lock (&inode->i_lock); + old = *p; +rcu_assign_pointer (*p,posix_acl_dup (acl)); +spin_unlock (&inode->i_lock); +if (old !=ACL_NOT_CACHED ) +posix_acl_release (old); +} +EXPORT_SYMBOL (set_cached_acl); + +void forget_cached_acl (struct inode *inode,int type) +{ +struct posix_acl **p =acl_by_type (inode, type); +struct posix_acl *old; +spin_lock (&inode->i_lock); + old = *p; + *p =ACL_NOT_CACHED ; +spin_unlock (&inode->i_lock); +if (old !=ACL_NOT_CACHED ) +posix_acl_release (old); +} +EXPORT_SYMBOL (forget_cached_acl); + +void forget_all_cached_acls (struct inode *inode) +{ +struct posix_acl *old_access, *old_default; +spin_lock (&inode->i_lock); + old_access = inode->i_acl; + old_default = inode->i_default_acl; + inode->i_acl = inode->i_default_acl =ACL_NOT_CACHED ; +spin_unlock (&inode->i_lock); +if (old_access !=ACL_NOT_CACHED ) +posix_acl_release (old_access); +if (old_default !=ACL_NOT_CACHED ) +posix_acl_release (old_default); +} +EXPORT_SYMBOL (forget_all_cached_acls);/* * Init a fresh posix_acl
@@ -37,6 +106,7 @@ posix_acl_init(struct posix_acl *acl, inatomic_set (&acl->a_refcount,1 ); acl->a_count = count; } +EXPORT_SYMBOL (posix_acl_init);/* * Allocate a new ACL with the specified number of entries.
@@ -51,6 +121,7 @@ posix_acl_alloc(int count, gfp_t flags)posix_acl_init (acl, count);return acl; } +EXPORT_SYMBOL (posix_acl_alloc);/* * Clone an ACL.
@@ -146,6 +217,7 @@ posix_acl_valid(const struct posix_acl *return 0 ;return -EINVAL ; } +EXPORT_SYMBOL (posix_acl_valid);/* * Returns 0 if the acl can be exactly represented in the traditional
@@ -186,6 +258,7 @@ posix_acl_equiv_mode(const struct posix_ *mode_p = (*mode_p & ~S_IRWXUGO ) | mode;return not_equiv; } +EXPORT_SYMBOL (posix_acl_equiv_mode);/* * Create an ACL representing the file mode permission bits of an inode.
@@ -207,6 +280,7 @@ posix_acl_from_mode(umode_t mode, gfp_t acl->a_entries[2 ].e_perm = (mode &S_IRWXO );return acl; } +EXPORT_SYMBOL (posix_acl_from_mode);/* * Return 0 if current is granted want access to the inode
include/linux/posix_acl.h renamed from include/linux/posix_acl.h~posix_acl-uninlining +6 -72
84 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
origin.patch
arch-alpha-kernel-systblss-remove-debug-check.patch i-need-old-gcc.patch input-route-kbd-leds-through-the-generic-leds-layer.patch drivers-block-ccissc-cciss_init_one-use-proper-errnos.patch
mm.patch
mm-print-more-details-for-bad_page-fix.patch mm-munlock-fix-potential-race-with-thp-page-split-fix.patch mm-dump-page-when-hitting-a-vm_bug_on-using-vm_bug_on_page-fix-fix.patch memcg-slab-kmem_cache_create_memcg-fix-memleak-on-fail-path-fix.patch numa-add-a-sysctl-for-numa_balancing-fix.patch mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon-fix.patch mm-nobootmem-free_all_bootmem-again-fix-fix.patch mm-improve-documentation-of-page_order-v2-fix.patch lib-parserc-put-export_symbols-in-the-conventional-place.patch printk-flush-conflicting-continuation-line-fix.patch drivers-rtc-rtc-cmosc-propagate-hpet_register_irq_handler-failure.patch kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-fix.patch kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-checkpatch-fixes.patch fs-ext3-use-rbtree-postorder-iteration-helper-instead-of-opencoding-fix.patch ipc-semc-avoid-overflow-of-semop-undo-semadj-value-fix.patch ipcmsg-document-barriers-fix.patch ipcmsg-document-barriers-fix-fix.patch
linux-next.patch
linux-next-git-rejects.patch block-blk-mq-cpuc-use-hotcpu_notifier.patch debugging-keep-track-of-page-owners.patch journal_add_journal_head-debug.patch kernel-forkc-export-kernel_thread-to-modules.patch mutex-subsystem-synchro-test-module.patch
slab-leaks3-default-y.patch
put_bh-debug.patch