super.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. /*
  2. * linux/fs/hfsplus/super.c
  3. *
  4. * Copyright (C) 2001
  5. * Brad Boyer (flar@allandria.com)
  6. * (C) 2003 Ardis Technologies <roman@ardistech.com>
  7. *
  8. */
  9. #include <linux/module.h>
  10. #include <linux/init.h>
  11. #include <linux/pagemap.h>
  12. #include <linux/fs.h>
  13. #include <linux/slab.h>
  14. #include <linux/vfs.h>
  15. #include <linux/nls.h>
  16. static struct inode *hfsplus_alloc_inode(struct super_block *sb);
  17. static void hfsplus_destroy_inode(struct inode *inode);
  18. #include "hfsplus_fs.h"
  19. static int hfsplus_system_read_inode(struct inode *inode)
  20. {
  21. struct hfsplus_vh *vhdr = HFSPLUS_SB(inode->i_sb)->s_vhdr;
  22. switch (inode->i_ino) {
  23. case HFSPLUS_EXT_CNID:
  24. hfsplus_inode_read_fork(inode, &vhdr->ext_file);
  25. inode->i_mapping->a_ops = &hfsplus_btree_aops;
  26. break;
  27. case HFSPLUS_CAT_CNID:
  28. hfsplus_inode_read_fork(inode, &vhdr->cat_file);
  29. inode->i_mapping->a_ops = &hfsplus_btree_aops;
  30. break;
  31. case HFSPLUS_ALLOC_CNID:
  32. hfsplus_inode_read_fork(inode, &vhdr->alloc_file);
  33. inode->i_mapping->a_ops = &hfsplus_aops;
  34. break;
  35. case HFSPLUS_START_CNID:
  36. hfsplus_inode_read_fork(inode, &vhdr->start_file);
  37. break;
  38. case HFSPLUS_ATTR_CNID:
  39. hfsplus_inode_read_fork(inode, &vhdr->attr_file);
  40. inode->i_mapping->a_ops = &hfsplus_btree_aops;
  41. break;
  42. default:
  43. return -EIO;
  44. }
  45. return 0;
  46. }
  47. struct inode *hfsplus_iget(struct super_block *sb, unsigned long ino)
  48. {
  49. struct hfs_find_data fd;
  50. struct inode *inode;
  51. int err;
  52. inode = iget_locked(sb, ino);
  53. if (!inode)
  54. return ERR_PTR(-ENOMEM);
  55. if (!(inode->i_state & I_NEW))
  56. return inode;
  57. INIT_LIST_HEAD(&HFSPLUS_I(inode)->open_dir_list);
  58. mutex_init(&HFSPLUS_I(inode)->extents_lock);
  59. HFSPLUS_I(inode)->flags = 0;
  60. HFSPLUS_I(inode)->rsrc_inode = NULL;
  61. atomic_set(&HFSPLUS_I(inode)->opencnt, 0);
  62. if (inode->i_ino >= HFSPLUS_FIRSTUSER_CNID ||
  63. inode->i_ino == HFSPLUS_ROOT_CNID) {
  64. hfs_find_init(HFSPLUS_SB(inode->i_sb)->cat_tree, &fd);
  65. err = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd);
  66. if (!err)
  67. err = hfsplus_cat_read_inode(inode, &fd);
  68. hfs_find_exit(&fd);
  69. } else {
  70. err = hfsplus_system_read_inode(inode);
  71. }
  72. if (err) {
  73. iget_failed(inode);
  74. return ERR_PTR(err);
  75. }
  76. unlock_new_inode(inode);
  77. return inode;
  78. }
  79. static int hfsplus_system_write_inode(struct inode *inode)
  80. {
  81. struct hfsplus_sb_info *sbi = HFSPLUS_SB(inode->i_sb);
  82. struct hfsplus_vh *vhdr = sbi->s_vhdr;
  83. struct hfsplus_fork_raw *fork;
  84. struct hfs_btree *tree = NULL;
  85. switch (inode->i_ino) {
  86. case HFSPLUS_EXT_CNID:
  87. fork = &vhdr->ext_file;
  88. tree = sbi->ext_tree;
  89. break;
  90. case HFSPLUS_CAT_CNID:
  91. fork = &vhdr->cat_file;
  92. tree = sbi->cat_tree;
  93. break;
  94. case HFSPLUS_ALLOC_CNID:
  95. fork = &vhdr->alloc_file;
  96. break;
  97. case HFSPLUS_START_CNID:
  98. fork = &vhdr->start_file;
  99. break;
  100. case HFSPLUS_ATTR_CNID:
  101. fork = &vhdr->attr_file;
  102. tree = sbi->attr_tree;
  103. default:
  104. return -EIO;
  105. }
  106. if (fork->total_size != cpu_to_be64(inode->i_size)) {
  107. set_bit(HFSPLUS_SB_WRITEBACKUP, &sbi->flags);
  108. inode->i_sb->s_dirt = 1;
  109. }
  110. hfsplus_inode_write_fork(inode, fork);
  111. if (tree)
  112. hfs_btree_write(tree);
  113. return 0;
  114. }
  115. static int hfsplus_write_inode(struct inode *inode,
  116. struct writeback_control *wbc)
  117. {
  118. dprint(DBG_INODE, "hfsplus_write_inode: %lu\n", inode->i_ino);
  119. hfsplus_ext_write_extent(inode);
  120. if (inode->i_ino >= HFSPLUS_FIRSTUSER_CNID ||
  121. inode->i_ino == HFSPLUS_ROOT_CNID)
  122. return hfsplus_cat_write_inode(inode);
  123. else
  124. return hfsplus_system_write_inode(inode);
  125. }
  126. static void hfsplus_evict_inode(struct inode *inode)
  127. {
  128. dprint(DBG_INODE, "hfsplus_evict_inode: %lu\n", inode->i_ino);
  129. truncate_inode_pages(&inode->i_data, 0);
  130. end_writeback(inode);
  131. if (HFSPLUS_IS_RSRC(inode)) {
  132. HFSPLUS_I(HFSPLUS_I(inode)->rsrc_inode)->rsrc_inode = NULL;
  133. iput(HFSPLUS_I(inode)->rsrc_inode);
  134. }
  135. }
  136. int hfsplus_sync_fs(struct super_block *sb, int wait)
  137. {
  138. struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
  139. struct hfsplus_vh *vhdr = sbi->s_vhdr;
  140. int write_backup = 0;
  141. int error, error2;
  142. dprint(DBG_SUPER, "hfsplus_write_super\n");
  143. sb->s_dirt = 0;
  144. /*
  145. * Explicitly write out the special metadata inodes.
  146. *
  147. * While these special inodes are marked as hashed and written
  148. * out peridocically by the flusher threads we redirty them
  149. * during writeout of normal inodes, and thus the life lock
  150. * prevents us from getting the latest state to disk.
  151. */
  152. error = filemap_write_and_wait(sbi->cat_tree->inode->i_mapping);
  153. error2 = filemap_write_and_wait(sbi->ext_tree->inode->i_mapping);
  154. if (!error)
  155. error = error2;
  156. error2 = filemap_write_and_wait(sbi->alloc_file->i_mapping);
  157. if (!error)
  158. error = error2;
  159. mutex_lock(&sbi->vh_mutex);
  160. mutex_lock(&sbi->alloc_mutex);
  161. vhdr->free_blocks = cpu_to_be32(sbi->free_blocks);
  162. vhdr->next_cnid = cpu_to_be32(sbi->next_cnid);
  163. vhdr->folder_count = cpu_to_be32(sbi->folder_count);
  164. vhdr->file_count = cpu_to_be32(sbi->file_count);
  165. if (test_and_clear_bit(HFSPLUS_SB_WRITEBACKUP, &sbi->flags)) {
  166. memcpy(sbi->s_backup_vhdr, sbi->s_vhdr, sizeof(*sbi->s_vhdr));
  167. write_backup = 1;
  168. }
  169. error2 = hfsplus_submit_bio(sb->s_bdev,
  170. sbi->part_start + HFSPLUS_VOLHEAD_SECTOR,
  171. sbi->s_vhdr, WRITE_SYNC);
  172. if (!error)
  173. error = error2;
  174. if (!write_backup)
  175. goto out;
  176. error2 = hfsplus_submit_bio(sb->s_bdev,
  177. sbi->part_start + sbi->sect_count - 2,
  178. sbi->s_backup_vhdr, WRITE_SYNC);
  179. if (!error)
  180. error2 = error;
  181. out:
  182. mutex_unlock(&sbi->alloc_mutex);
  183. mutex_unlock(&sbi->vh_mutex);
  184. return error;
  185. }
  186. static void hfsplus_write_super(struct super_block *sb)
  187. {
  188. if (!(sb->s_flags & MS_RDONLY))
  189. hfsplus_sync_fs(sb, 1);
  190. else
  191. sb->s_dirt = 0;
  192. }
  193. static void hfsplus_put_super(struct super_block *sb)
  194. {
  195. struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
  196. dprint(DBG_SUPER, "hfsplus_put_super\n");
  197. if (!sb->s_fs_info)
  198. return;
  199. if (!(sb->s_flags & MS_RDONLY) && sbi->s_vhdr) {
  200. struct hfsplus_vh *vhdr = sbi->s_vhdr;
  201. vhdr->modify_date = hfsp_now2mt();
  202. vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_UNMNT);
  203. vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_INCNSTNT);
  204. hfsplus_sync_fs(sb, 1);
  205. }
  206. hfs_btree_close(sbi->cat_tree);
  207. hfs_btree_close(sbi->ext_tree);
  208. iput(sbi->alloc_file);
  209. iput(sbi->hidden_dir);
  210. kfree(sbi->s_vhdr);
  211. kfree(sbi->s_backup_vhdr);
  212. unload_nls(sbi->nls);
  213. kfree(sb->s_fs_info);
  214. sb->s_fs_info = NULL;
  215. }
  216. static int hfsplus_statfs(struct dentry *dentry, struct kstatfs *buf)
  217. {
  218. struct super_block *sb = dentry->d_sb;
  219. struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
  220. u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
  221. buf->f_type = HFSPLUS_SUPER_MAGIC;
  222. buf->f_bsize = sb->s_blocksize;
  223. buf->f_blocks = sbi->total_blocks << sbi->fs_shift;
  224. buf->f_bfree = sbi->free_blocks << sbi->fs_shift;
  225. buf->f_bavail = buf->f_bfree;
  226. buf->f_files = 0xFFFFFFFF;
  227. buf->f_ffree = 0xFFFFFFFF - sbi->next_cnid;
  228. buf->f_fsid.val[0] = (u32)id;
  229. buf->f_fsid.val[1] = (u32)(id >> 32);
  230. buf->f_namelen = HFSPLUS_MAX_STRLEN;
  231. return 0;
  232. }
  233. static int hfsplus_remount(struct super_block *sb, int *flags, char *data)
  234. {
  235. if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY))
  236. return 0;
  237. if (!(*flags & MS_RDONLY)) {
  238. struct hfsplus_vh *vhdr = HFSPLUS_SB(sb)->s_vhdr;
  239. int force = 0;
  240. if (!hfsplus_parse_options_remount(data, &force))
  241. return -EINVAL;
  242. if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
  243. printk(KERN_WARNING "hfs: filesystem was not cleanly unmounted, "
  244. "running fsck.hfsplus is recommended. leaving read-only.\n");
  245. sb->s_flags |= MS_RDONLY;
  246. *flags |= MS_RDONLY;
  247. } else if (force) {
  248. /* nothing */
  249. } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) {
  250. printk(KERN_WARNING "hfs: filesystem is marked locked, leaving read-only.\n");
  251. sb->s_flags |= MS_RDONLY;
  252. *flags |= MS_RDONLY;
  253. } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_JOURNALED)) {
  254. printk(KERN_WARNING "hfs: filesystem is marked journaled, leaving read-only.\n");
  255. sb->s_flags |= MS_RDONLY;
  256. *flags |= MS_RDONLY;
  257. }
  258. }
  259. return 0;
  260. }
  261. static const struct super_operations hfsplus_sops = {
  262. .alloc_inode = hfsplus_alloc_inode,
  263. .destroy_inode = hfsplus_destroy_inode,
  264. .write_inode = hfsplus_write_inode,
  265. .evict_inode = hfsplus_evict_inode,
  266. .put_super = hfsplus_put_super,
  267. .write_super = hfsplus_write_super,
  268. .sync_fs = hfsplus_sync_fs,
  269. .statfs = hfsplus_statfs,
  270. .remount_fs = hfsplus_remount,
  271. .show_options = hfsplus_show_options,
  272. };
  273. static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
  274. {
  275. struct hfsplus_vh *vhdr;
  276. struct hfsplus_sb_info *sbi;
  277. hfsplus_cat_entry entry;
  278. struct hfs_find_data fd;
  279. struct inode *root, *inode;
  280. struct qstr str;
  281. struct nls_table *nls = NULL;
  282. int err = -EINVAL;
  283. sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
  284. if (!sbi)
  285. return -ENOMEM;
  286. sb->s_fs_info = sbi;
  287. mutex_init(&sbi->alloc_mutex);
  288. mutex_init(&sbi->vh_mutex);
  289. hfsplus_fill_defaults(sbi);
  290. if (!hfsplus_parse_options(data, sbi)) {
  291. printk(KERN_ERR "hfs: unable to parse mount options\n");
  292. err = -EINVAL;
  293. goto cleanup;
  294. }
  295. /* temporarily use utf8 to correctly find the hidden dir below */
  296. nls = sbi->nls;
  297. sbi->nls = load_nls("utf8");
  298. if (!sbi->nls) {
  299. printk(KERN_ERR "hfs: unable to load nls for utf8\n");
  300. err = -EINVAL;
  301. goto cleanup;
  302. }
  303. /* Grab the volume header */
  304. if (hfsplus_read_wrapper(sb)) {
  305. if (!silent)
  306. printk(KERN_WARNING "hfs: unable to find HFS+ superblock\n");
  307. err = -EINVAL;
  308. goto cleanup;
  309. }
  310. vhdr = sbi->s_vhdr;
  311. /* Copy parts of the volume header into the superblock */
  312. sb->s_magic = HFSPLUS_VOLHEAD_SIG;
  313. if (be16_to_cpu(vhdr->version) < HFSPLUS_MIN_VERSION ||
  314. be16_to_cpu(vhdr->version) > HFSPLUS_CURRENT_VERSION) {
  315. printk(KERN_ERR "hfs: wrong filesystem version\n");
  316. goto cleanup;
  317. }
  318. sbi->total_blocks = be32_to_cpu(vhdr->total_blocks);
  319. sbi->free_blocks = be32_to_cpu(vhdr->free_blocks);
  320. sbi->next_cnid = be32_to_cpu(vhdr->next_cnid);
  321. sbi->file_count = be32_to_cpu(vhdr->file_count);
  322. sbi->folder_count = be32_to_cpu(vhdr->folder_count);
  323. sbi->data_clump_blocks =
  324. be32_to_cpu(vhdr->data_clump_sz) >> sbi->alloc_blksz_shift;
  325. if (!sbi->data_clump_blocks)
  326. sbi->data_clump_blocks = 1;
  327. sbi->rsrc_clump_blocks =
  328. be32_to_cpu(vhdr->rsrc_clump_sz) >> sbi->alloc_blksz_shift;
  329. if (!sbi->rsrc_clump_blocks)
  330. sbi->rsrc_clump_blocks = 1;
  331. /* Set up operations so we can load metadata */
  332. sb->s_op = &hfsplus_sops;
  333. sb->s_maxbytes = MAX_LFS_FILESIZE;
  334. if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
  335. printk(KERN_WARNING "hfs: Filesystem was not cleanly unmounted, "
  336. "running fsck.hfsplus is recommended. mounting read-only.\n");
  337. sb->s_flags |= MS_RDONLY;
  338. } else if (test_and_clear_bit(HFSPLUS_SB_FORCE, &sbi->flags)) {
  339. /* nothing */
  340. } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) {
  341. printk(KERN_WARNING "hfs: Filesystem is marked locked, mounting read-only.\n");
  342. sb->s_flags |= MS_RDONLY;
  343. } else if ((vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_JOURNALED)) && !(sb->s_flags & MS_RDONLY)) {
  344. printk(KERN_WARNING "hfs: write access to a journaled filesystem is not supported, "
  345. "use the force option at your own risk, mounting read-only.\n");
  346. sb->s_flags |= MS_RDONLY;
  347. }
  348. /* Load metadata objects (B*Trees) */
  349. sbi->ext_tree = hfs_btree_open(sb, HFSPLUS_EXT_CNID);
  350. if (!sbi->ext_tree) {
  351. printk(KERN_ERR "hfs: failed to load extents file\n");
  352. goto cleanup;
  353. }
  354. sbi->cat_tree = hfs_btree_open(sb, HFSPLUS_CAT_CNID);
  355. if (!sbi->cat_tree) {
  356. printk(KERN_ERR "hfs: failed to load catalog file\n");
  357. goto cleanup;
  358. }
  359. inode = hfsplus_iget(sb, HFSPLUS_ALLOC_CNID);
  360. if (IS_ERR(inode)) {
  361. printk(KERN_ERR "hfs: failed to load allocation file\n");
  362. err = PTR_ERR(inode);
  363. goto cleanup;
  364. }
  365. sbi->alloc_file = inode;
  366. /* Load the root directory */
  367. root = hfsplus_iget(sb, HFSPLUS_ROOT_CNID);
  368. if (IS_ERR(root)) {
  369. printk(KERN_ERR "hfs: failed to load root directory\n");
  370. err = PTR_ERR(root);
  371. goto cleanup;
  372. }
  373. sb->s_root = d_alloc_root(root);
  374. if (!sb->s_root) {
  375. iput(root);
  376. err = -ENOMEM;
  377. goto cleanup;
  378. }
  379. sb->s_root->d_op = &hfsplus_dentry_operations;
  380. str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1;
  381. str.name = HFSP_HIDDENDIR_NAME;
  382. hfs_find_init(sbi->cat_tree, &fd);
  383. hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str);
  384. if (!hfs_brec_read(&fd, &entry, sizeof(entry))) {
  385. hfs_find_exit(&fd);
  386. if (entry.type != cpu_to_be16(HFSPLUS_FOLDER))
  387. goto cleanup;
  388. inode = hfsplus_iget(sb, be32_to_cpu(entry.folder.id));
  389. if (IS_ERR(inode)) {
  390. err = PTR_ERR(inode);
  391. goto cleanup;
  392. }
  393. sbi->hidden_dir = inode;
  394. } else
  395. hfs_find_exit(&fd);
  396. if (sb->s_flags & MS_RDONLY)
  397. goto out;
  398. /* H+LX == hfsplusutils, H+Lx == this driver, H+lx is unused
  399. * all three are registered with Apple for our use
  400. */
  401. vhdr->last_mount_vers = cpu_to_be32(HFSP_MOUNT_VERSION);
  402. vhdr->modify_date = hfsp_now2mt();
  403. be32_add_cpu(&vhdr->write_count, 1);
  404. vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_UNMNT);
  405. vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_INCNSTNT);
  406. hfsplus_sync_fs(sb, 1);
  407. if (!sbi->hidden_dir) {
  408. mutex_lock(&sbi->vh_mutex);
  409. sbi->hidden_dir = hfsplus_new_inode(sb, S_IFDIR);
  410. hfsplus_create_cat(sbi->hidden_dir->i_ino, sb->s_root->d_inode,
  411. &str, sbi->hidden_dir);
  412. mutex_unlock(&sbi->vh_mutex);
  413. mark_inode_dirty(sbi->hidden_dir);
  414. }
  415. out:
  416. unload_nls(sbi->nls);
  417. sbi->nls = nls;
  418. return 0;
  419. cleanup:
  420. hfsplus_put_super(sb);
  421. unload_nls(nls);
  422. return err;
  423. }
  424. MODULE_AUTHOR("Brad Boyer");
  425. MODULE_DESCRIPTION("Extended Macintosh Filesystem");
  426. MODULE_LICENSE("GPL");
  427. static struct kmem_cache *hfsplus_inode_cachep;
  428. static struct inode *hfsplus_alloc_inode(struct super_block *sb)
  429. {
  430. struct hfsplus_inode_info *i;
  431. i = kmem_cache_alloc(hfsplus_inode_cachep, GFP_KERNEL);
  432. return i ? &i->vfs_inode : NULL;
  433. }
  434. static void hfsplus_destroy_inode(struct inode *inode)
  435. {
  436. kmem_cache_free(hfsplus_inode_cachep, HFSPLUS_I(inode));
  437. }
  438. #define HFSPLUS_INODE_SIZE sizeof(struct hfsplus_inode_info)
  439. static struct dentry *hfsplus_mount(struct file_system_type *fs_type,
  440. int flags, const char *dev_name, void *data)
  441. {
  442. return mount_bdev(fs_type, flags, dev_name, data, hfsplus_fill_super);
  443. }
  444. static struct file_system_type hfsplus_fs_type = {
  445. .owner = THIS_MODULE,
  446. .name = "hfsplus",
  447. .mount = hfsplus_mount,
  448. .kill_sb = kill_block_super,
  449. .fs_flags = FS_REQUIRES_DEV,
  450. };
  451. static void hfsplus_init_once(void *p)
  452. {
  453. struct hfsplus_inode_info *i = p;
  454. inode_init_once(&i->vfs_inode);
  455. }
  456. static int __init init_hfsplus_fs(void)
  457. {
  458. int err;
  459. hfsplus_inode_cachep = kmem_cache_create("hfsplus_icache",
  460. HFSPLUS_INODE_SIZE, 0, SLAB_HWCACHE_ALIGN,
  461. hfsplus_init_once);
  462. if (!hfsplus_inode_cachep)
  463. return -ENOMEM;
  464. err = register_filesystem(&hfsplus_fs_type);
  465. if (err)
  466. kmem_cache_destroy(hfsplus_inode_cachep);
  467. return err;
  468. }
  469. static void __exit exit_hfsplus_fs(void)
  470. {
  471. unregister_filesystem(&hfsplus_fs_type);
  472. kmem_cache_destroy(hfsplus_inode_cachep);
  473. }
  474. module_init(init_hfsplus_fs)
  475. module_exit(exit_hfsplus_fs)