hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/hfs/super.c
....@@ -29,6 +29,7 @@
2929 static struct kmem_cache *hfs_inode_cachep;
3030
3131 MODULE_LICENSE("GPL");
32
+MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);
3233
3334 static int hfs_sync_fs(struct super_block *sb, int wait)
3435 {
....@@ -104,8 +105,7 @@
104105 buf->f_bavail = buf->f_bfree;
105106 buf->f_files = HFS_SB(sb)->fs_ablocks;
106107 buf->f_ffree = HFS_SB(sb)->free_ablocks;
107
- buf->f_fsid.val[0] = (u32)id;
108
- buf->f_fsid.val[1] = (u32)(id >> 32);
108
+ buf->f_fsid = u64_to_fsid(id);
109109 buf->f_namelen = HFS_NAMELEN;
110110
111111 return 0;
....@@ -167,20 +167,14 @@
167167 return i ? &i->vfs_inode : NULL;
168168 }
169169
170
-static void hfs_i_callback(struct rcu_head *head)
170
+static void hfs_free_inode(struct inode *inode)
171171 {
172
- struct inode *inode = container_of(head, struct inode, i_rcu);
173172 kmem_cache_free(hfs_inode_cachep, HFS_I(inode));
174
-}
175
-
176
-static void hfs_destroy_inode(struct inode *inode)
177
-{
178
- call_rcu(&inode->i_rcu, hfs_i_callback);
179173 }
180174
181175 static const struct super_operations hfs_super_operations = {
182176 .alloc_inode = hfs_alloc_inode,
183
- .destroy_inode = hfs_destroy_inode,
177
+ .free_inode = hfs_free_inode,
184178 .write_inode = hfs_write_inode,
185179 .evict_inode = hfs_evict_inode,
186180 .put_super = hfs_put_super,