mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
hfsplus: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
#include <linux/nls.h>
|
#include <linux/nls.h>
|
||||||
|
|
||||||
static struct inode *hfsplus_alloc_inode(struct super_block *sb);
|
static struct inode *hfsplus_alloc_inode(struct super_block *sb);
|
||||||
static void hfsplus_destroy_inode(struct inode *inode);
|
static void hfsplus_free_inode(struct inode *inode);
|
||||||
|
|
||||||
#include "hfsplus_fs.h"
|
#include "hfsplus_fs.h"
|
||||||
#include "xattr.h"
|
#include "xattr.h"
|
||||||
@@ -361,7 +361,7 @@ static int hfsplus_remount(struct super_block *sb, int *flags, char *data)
|
|||||||
|
|
||||||
static const struct super_operations hfsplus_sops = {
|
static const struct super_operations hfsplus_sops = {
|
||||||
.alloc_inode = hfsplus_alloc_inode,
|
.alloc_inode = hfsplus_alloc_inode,
|
||||||
.destroy_inode = hfsplus_destroy_inode,
|
.free_inode = hfsplus_free_inode,
|
||||||
.write_inode = hfsplus_write_inode,
|
.write_inode = hfsplus_write_inode,
|
||||||
.evict_inode = hfsplus_evict_inode,
|
.evict_inode = hfsplus_evict_inode,
|
||||||
.put_super = hfsplus_put_super,
|
.put_super = hfsplus_put_super,
|
||||||
@@ -628,18 +628,11 @@ static struct inode *hfsplus_alloc_inode(struct super_block *sb)
|
|||||||
return i ? &i->vfs_inode : NULL;
|
return i ? &i->vfs_inode : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hfsplus_i_callback(struct rcu_head *head)
|
static void hfsplus_free_inode(struct inode *inode)
|
||||||
{
|
{
|
||||||
struct inode *inode = container_of(head, struct inode, i_rcu);
|
|
||||||
|
|
||||||
kmem_cache_free(hfsplus_inode_cachep, HFSPLUS_I(inode));
|
kmem_cache_free(hfsplus_inode_cachep, HFSPLUS_I(inode));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hfsplus_destroy_inode(struct inode *inode)
|
|
||||||
{
|
|
||||||
call_rcu(&inode->i_rcu, hfsplus_i_callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define HFSPLUS_INODE_SIZE sizeof(struct hfsplus_inode_info)
|
#define HFSPLUS_INODE_SIZE sizeof(struct hfsplus_inode_info)
|
||||||
|
|
||||||
static struct dentry *hfsplus_mount(struct file_system_type *fs_type,
|
static struct dentry *hfsplus_mount(struct file_system_type *fs_type,
|
||||||
|
Reference in New Issue
Block a user