aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfsplus
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@tuxera.com>2010-09-30 23:43:58 -0400
committerChristoph Hellwig <hch@lst.de>2010-09-30 23:43:58 -0400
commit66e5db05bb6670f314d90aba5998e6a033e4d563 (patch)
tree66bae4889f95b20521d890e4dda944672663aa50 /fs/hfsplus
parentf17c89bfcc9cccd405098eac3ec1ebfddf03279e (diff)
hfsplus: do not cache and write next_alloc
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>
Diffstat (limited to 'fs/hfsplus')
-rw-r--r--fs/hfsplus/hfsplus_fs.h1
-rw-r--r--fs/hfsplus/super.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/fs/hfsplus/hfsplus_fs.h b/fs/hfsplus/hfsplus_fs.h
index 169cef964b51..5e2418a71887 100644
--- a/fs/hfsplus/hfsplus_fs.h
+++ b/fs/hfsplus/hfsplus_fs.h
@@ -129,7 +129,6 @@ struct hfsplus_sb_info {
129 int alloc_blksz_shift; 129 int alloc_blksz_shift;
130 u32 total_blocks; 130 u32 total_blocks;
131 u32 free_blocks; 131 u32 free_blocks;
132 u32 next_alloc;
133 u32 next_cnid; 132 u32 next_cnid;
134 u32 file_count; 133 u32 file_count;
135 u32 folder_count; 134 u32 folder_count;
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c
index e485a38b994d..f310a1fdcd5f 100644
--- a/fs/hfsplus/super.c
+++ b/fs/hfsplus/super.c
@@ -164,7 +164,6 @@ int hfsplus_sync_fs(struct super_block *sb, int wait)
164 sb->s_dirt = 0; 164 sb->s_dirt = 0;
165 165
166 vhdr->free_blocks = cpu_to_be32(sbi->free_blocks); 166 vhdr->free_blocks = cpu_to_be32(sbi->free_blocks);
167 vhdr->next_alloc = cpu_to_be32(sbi->next_alloc);
168 vhdr->next_cnid = cpu_to_be32(sbi->next_cnid); 167 vhdr->next_cnid = cpu_to_be32(sbi->next_cnid);
169 vhdr->folder_count = cpu_to_be32(sbi->folder_count); 168 vhdr->folder_count = cpu_to_be32(sbi->folder_count);
170 vhdr->file_count = cpu_to_be32(sbi->file_count); 169 vhdr->file_count = cpu_to_be32(sbi->file_count);
@@ -355,7 +354,6 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
355 } 354 }
356 sbi->total_blocks = be32_to_cpu(vhdr->total_blocks); 355 sbi->total_blocks = be32_to_cpu(vhdr->total_blocks);
357 sbi->free_blocks = be32_to_cpu(vhdr->free_blocks); 356 sbi->free_blocks = be32_to_cpu(vhdr->free_blocks);
358 sbi->next_alloc = be32_to_cpu(vhdr->next_alloc);
359 sbi->next_cnid = be32_to_cpu(vhdr->next_cnid); 357 sbi->next_cnid = be32_to_cpu(vhdr->next_cnid);
360 sbi->file_count = be32_to_cpu(vhdr->file_count); 358 sbi->file_count = be32_to_cpu(vhdr->file_count);
361 sbi->folder_count = be32_to_cpu(vhdr->folder_count); 359 sbi->folder_count = be32_to_cpu(vhdr->folder_count);