hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/fs/hpfs/super.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/fs/hpfs/super.c
34 *
....@@ -191,8 +192,7 @@
191192 buf->f_bavail = sbi->sb_n_free;
192193 buf->f_files = sbi->sb_dirband_size / 4;
193194 buf->f_ffree = hpfs_get_free_dnodes(s);
194
- buf->f_fsid.val[0] = (u32)id;
195
- buf->f_fsid.val[1] = (u32)(id >> 32);
195
+ buf->f_fsid = u64_to_fsid(id);
196196 buf->f_namelen = 254;
197197
198198 hpfs_unlock(s);
....@@ -238,15 +238,9 @@
238238 return &ei->vfs_inode;
239239 }
240240
241
-static void hpfs_i_callback(struct rcu_head *head)
241
+static void hpfs_free_inode(struct inode *inode)
242242 {
243
- struct inode *inode = container_of(head, struct inode, i_rcu);
244243 kmem_cache_free(hpfs_inode_cachep, hpfs_i(inode));
245
-}
246
-
247
-static void hpfs_destroy_inode(struct inode *inode)
248
-{
249
- call_rcu(&inode->i_rcu, hpfs_i_callback);
250244 }
251245
252246 static void init_once(void *foo)
....@@ -532,7 +526,7 @@
532526 static const struct super_operations hpfs_sops =
533527 {
534528 .alloc_inode = hpfs_alloc_inode,
535
- .destroy_inode = hpfs_destroy_inode,
529
+ .free_inode = hpfs_free_inode,
536530 .evict_inode = hpfs_evict_inode,
537531 .put_super = hpfs_put_super,
538532 .statfs = hpfs_statfs,
....@@ -619,6 +613,8 @@
619613 s->s_magic = HPFS_SUPER_MAGIC;
620614 s->s_op = &hpfs_sops;
621615 s->s_d_op = &hpfs_dentry_operations;
616
+ s->s_time_min = local_to_gmt(s, 0);
617
+ s->s_time_max = local_to_gmt(s, U32_MAX);
622618
623619 sbi->sb_root = le32_to_cpu(superblock->root);
624620 sbi->sb_fs_size = le32_to_cpu(superblock->n_sectors);
....@@ -795,3 +791,4 @@
795791 module_init(init_hpfs_fs)
796792 module_exit(exit_hpfs_fs)
797793 MODULE_LICENSE("GPL");
794
+MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);