super.c (5e2aa2ed08e2e280121dc7cf5609c87d464f12ef) super.c (89ac9b4d3d1a049ae1054f99b1aed81092cd0a82)
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 */

--- 501 unchanged lines hidden (view full) ---

510 goto out_put_alloc_file;
511 }
512
513 str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1;
514 str.name = HFSP_HIDDENDIR_NAME;
515 err = hfs_find_init(sbi->cat_tree, &fd);
516 if (err)
517 goto out_put_root;
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 */

--- 501 unchanged lines hidden (view full) ---

510 goto out_put_alloc_file;
511 }
512
513 str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1;
514 str.name = HFSP_HIDDENDIR_NAME;
515 err = hfs_find_init(sbi->cat_tree, &fd);
516 if (err)
517 goto out_put_root;
518 hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str);
518 err = hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str);
519 if (unlikely(err < 0))
520 goto out_put_root;
519 if (!hfs_brec_read(&fd, &entry, sizeof(entry))) {
520 hfs_find_exit(&fd);
521 if (entry.type != cpu_to_be16(HFSPLUS_FOLDER))
522 goto out_put_root;
523 inode = hfsplus_iget(sb, be32_to_cpu(entry.folder.id));
524 if (IS_ERR(inode)) {
525 err = PTR_ERR(inode);
526 goto out_put_root;

--- 172 unchanged lines hidden ---
521 if (!hfs_brec_read(&fd, &entry, sizeof(entry))) {
522 hfs_find_exit(&fd);
523 if (entry.type != cpu_to_be16(HFSPLUS_FOLDER))
524 goto out_put_root;
525 inode = hfsplus_iget(sb, be32_to_cpu(entry.folder.id));
526 if (IS_ERR(inode)) {
527 err = PTR_ERR(inode);
528 goto out_put_root;

--- 172 unchanged lines hidden ---