mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
fs: avoid inode RCU freeing for pseudo fs
Pseudo filesystems that don't put inode on RCU list or reachable by rcu-walk dentries do not need to RCU free their inodes. Signed-off-by: Nick Piggin <[email protected]>
This commit is contained in:
parent
fa0d7e3de6
commit
ff0c7d15f9
5 changed files with 22 additions and 9 deletions
|
|
@ -257,6 +257,12 @@ static struct inode *alloc_inode(struct super_block *sb)
|
|||
return inode;
|
||||
}
|
||||
|
||||
void free_inode_nonrcu(struct inode *inode)
|
||||
{
|
||||
kmem_cache_free(inode_cachep, inode);
|
||||
}
|
||||
EXPORT_SYMBOL(free_inode_nonrcu);
|
||||
|
||||
void __destroy_inode(struct inode *inode)
|
||||
{
|
||||
BUG_ON(inode_has_buffers(inode));
|
||||
|
|
|
|||
Loading…
Reference in a new issue