hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/fs/sysv/inode.c
....@@ -98,8 +98,7 @@
9898 buf->f_files = sbi->s_ninodes;
9999 buf->f_ffree = sysv_count_free_inodes(sb);
100100 buf->f_namelen = SYSV_NAMELEN;
101
- buf->f_fsid.val[0] = (u32)id;
102
- buf->f_fsid.val[1] = (u32)(id >> 32);
101
+ buf->f_fsid = u64_to_fsid(id);
103102 return 0;
104103 }
105104
....@@ -313,15 +312,9 @@
313312 return &si->vfs_inode;
314313 }
315314
316
-static void sysv_i_callback(struct rcu_head *head)
315
+static void sysv_free_in_core_inode(struct inode *inode)
317316 {
318
- struct inode *inode = container_of(head, struct inode, i_rcu);
319317 kmem_cache_free(sysv_inode_cachep, SYSV_I(inode));
320
-}
321
-
322
-static void sysv_destroy_inode(struct inode *inode)
323
-{
324
- call_rcu(&inode->i_rcu, sysv_i_callback);
325318 }
326319
327320 static void init_once(void *p)
....@@ -333,7 +326,7 @@
333326
334327 const struct super_operations sysv_sops = {
335328 .alloc_inode = sysv_alloc_inode,
336
- .destroy_inode = sysv_destroy_inode,
329
+ .free_inode = sysv_free_in_core_inode,
337330 .write_inode = sysv_write_inode,
338331 .evict_inode = sysv_evict_inode,
339332 .put_super = sysv_put_super,