.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/fs/hpfs/super.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
191 | 192 | buf->f_bavail = sbi->sb_n_free; |
---|
192 | 193 | buf->f_files = sbi->sb_dirband_size / 4; |
---|
193 | 194 | 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); |
---|
196 | 196 | buf->f_namelen = 254; |
---|
197 | 197 | |
---|
198 | 198 | hpfs_unlock(s); |
---|
.. | .. |
---|
238 | 238 | return &ei->vfs_inode; |
---|
239 | 239 | } |
---|
240 | 240 | |
---|
241 | | -static void hpfs_i_callback(struct rcu_head *head) |
---|
| 241 | +static void hpfs_free_inode(struct inode *inode) |
---|
242 | 242 | { |
---|
243 | | - struct inode *inode = container_of(head, struct inode, i_rcu); |
---|
244 | 243 | 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); |
---|
250 | 244 | } |
---|
251 | 245 | |
---|
252 | 246 | static void init_once(void *foo) |
---|
.. | .. |
---|
532 | 526 | static const struct super_operations hpfs_sops = |
---|
533 | 527 | { |
---|
534 | 528 | .alloc_inode = hpfs_alloc_inode, |
---|
535 | | - .destroy_inode = hpfs_destroy_inode, |
---|
| 529 | + .free_inode = hpfs_free_inode, |
---|
536 | 530 | .evict_inode = hpfs_evict_inode, |
---|
537 | 531 | .put_super = hpfs_put_super, |
---|
538 | 532 | .statfs = hpfs_statfs, |
---|
.. | .. |
---|
619 | 613 | s->s_magic = HPFS_SUPER_MAGIC; |
---|
620 | 614 | s->s_op = &hpfs_sops; |
---|
621 | 615 | 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); |
---|
622 | 618 | |
---|
623 | 619 | sbi->sb_root = le32_to_cpu(superblock->root); |
---|
624 | 620 | sbi->sb_fs_size = le32_to_cpu(superblock->n_sectors); |
---|
.. | .. |
---|
795 | 791 | module_init(init_hpfs_fs) |
---|
796 | 792 | module_exit(exit_hpfs_fs) |
---|
797 | 793 | MODULE_LICENSE("GPL"); |
---|
| 794 | +MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY); |
---|