Skip to content

Commit

Permalink
hfsplus: do not cache and write next_alloc
Browse files Browse the repository at this point in the history
We never look at it, nor change the next_alloc field in the superblock.  So
don't bother caching it or writing it out in hfsplus_sync_fs.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
  • Loading branch information
Christoph Hellwig authored and Christoph Hellwig committed Oct 1, 2010
1 parent f17c89b commit 66e5db0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion fs/hfsplus/hfsplus_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ struct hfsplus_sb_info {
int alloc_blksz_shift;
u32 total_blocks;
u32 free_blocks;
u32 next_alloc;
u32 next_cnid;
u32 file_count;
u32 folder_count;
Expand Down
2 changes: 0 additions & 2 deletions fs/hfsplus/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ int hfsplus_sync_fs(struct super_block *sb, int wait)
sb->s_dirt = 0;

vhdr->free_blocks = cpu_to_be32(sbi->free_blocks);
vhdr->next_alloc = cpu_to_be32(sbi->next_alloc);
vhdr->next_cnid = cpu_to_be32(sbi->next_cnid);
vhdr->folder_count = cpu_to_be32(sbi->folder_count);
vhdr->file_count = cpu_to_be32(sbi->file_count);
Expand Down Expand Up @@ -355,7 +354,6 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
}
sbi->total_blocks = be32_to_cpu(vhdr->total_blocks);
sbi->free_blocks = be32_to_cpu(vhdr->free_blocks);
sbi->next_alloc = be32_to_cpu(vhdr->next_alloc);
sbi->next_cnid = be32_to_cpu(vhdr->next_cnid);
sbi->file_count = be32_to_cpu(vhdr->file_count);
sbi->folder_count = be32_to_cpu(vhdr->folder_count);
Expand Down

0 comments on commit 66e5db0

Please sign in to comment.