hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/qnx4/inode.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * QNX4 file system, Linux implementation.
34 *
....@@ -28,14 +29,14 @@
2829 static const struct super_operations qnx4_sops;
2930
3031 static struct inode *qnx4_alloc_inode(struct super_block *sb);
31
-static void qnx4_destroy_inode(struct inode *inode);
32
+static void qnx4_free_inode(struct inode *inode);
3233 static int qnx4_remount(struct super_block *sb, int *flags, char *data);
3334 static int qnx4_statfs(struct dentry *, struct kstatfs *);
3435
3536 static const struct super_operations qnx4_sops =
3637 {
3738 .alloc_inode = qnx4_alloc_inode,
38
- .destroy_inode = qnx4_destroy_inode,
39
+ .free_inode = qnx4_free_inode,
3940 .statfs = qnx4_statfs,
4041 .remount_fs = qnx4_remount,
4142 };
....@@ -136,8 +137,7 @@
136137 buf->f_bfree = qnx4_count_free_blocks(sb);
137138 buf->f_bavail = buf->f_bfree;
138139 buf->f_namelen = QNX4_NAME_MAX;
139
- buf->f_fsid.val[0] = (u32)id;
140
- buf->f_fsid.val[1] = (u32)(id >> 32);
140
+ buf->f_fsid = u64_to_fsid(id);
141141
142142 return 0;
143143 }
....@@ -200,6 +200,8 @@
200200 s->s_op = &qnx4_sops;
201201 s->s_magic = QNX4_SUPER_MAGIC;
202202 s->s_flags |= SB_RDONLY; /* Yup, read-only yet */
203
+ s->s_time_min = 0;
204
+ s->s_time_max = U32_MAX;
203205
204206 /* Check the superblock signature. Since the qnx4 code is
205207 dangerous, we should leave as quickly as possible
....@@ -342,15 +344,9 @@
342344 return &ei->vfs_inode;
343345 }
344346
345
-static void qnx4_i_callback(struct rcu_head *head)
347
+static void qnx4_free_inode(struct inode *inode)
346348 {
347
- struct inode *inode = container_of(head, struct inode, i_rcu);
348349 kmem_cache_free(qnx4_inode_cachep, qnx4_i(inode));
349
-}
350
-
351
-static void qnx4_destroy_inode(struct inode *inode)
352
-{
353
- call_rcu(&inode->i_rcu, qnx4_i_callback);
354350 }
355351
356352 static void init_once(void *foo)
....@@ -424,4 +420,5 @@
424420 module_init(init_qnx4_fs)
425421 module_exit(exit_qnx4_fs)
426422 MODULE_LICENSE("GPL");
423
+MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);
427424