extents.c (6a797d2737838906f2ea0a31686e87c3151e21ca) | extents.c (e2b911c53584a92266943f3b7f2cdbc19c1a4e80) |
---|---|
1/* 2 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com 3 * Written by Alex Tomas <alex@clusterfs.com> 4 * 5 * Architecture independence: 6 * Copyright (c) 2005, Bull S.A. 7 * Written by Pierre Peiffer <pierre.peiffer@bull.net> 8 * --- 3041 unchanged lines hidden (view full) --- 3050 * called at mount time 3051 */ 3052void ext4_ext_init(struct super_block *sb) 3053{ 3054 /* 3055 * possible initialization would be here 3056 */ 3057 | 1/* 2 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com 3 * Written by Alex Tomas <alex@clusterfs.com> 4 * 5 * Architecture independence: 6 * Copyright (c) 2005, Bull S.A. 7 * Written by Pierre Peiffer <pierre.peiffer@bull.net> 8 * --- 3041 unchanged lines hidden (view full) --- 3050 * called at mount time 3051 */ 3052void ext4_ext_init(struct super_block *sb) 3053{ 3054 /* 3055 * possible initialization would be here 3056 */ 3057 |
3058 if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS)) { | 3058 if (ext4_has_feature_extents(sb)) { |
3059#if defined(AGGRESSIVE_TEST) || defined(CHECK_BINSEARCH) || defined(EXTENTS_STATS) 3060 printk(KERN_INFO "EXT4-fs: file extents enabled" 3061#ifdef AGGRESSIVE_TEST 3062 ", aggressive tests" 3063#endif 3064#ifdef CHECK_BINSEARCH 3065 ", check binsearch" 3066#endif --- 10 unchanged lines hidden (view full) --- 3077 } 3078} 3079 3080/* 3081 * called at umount time 3082 */ 3083void ext4_ext_release(struct super_block *sb) 3084{ | 3059#if defined(AGGRESSIVE_TEST) || defined(CHECK_BINSEARCH) || defined(EXTENTS_STATS) 3060 printk(KERN_INFO "EXT4-fs: file extents enabled" 3061#ifdef AGGRESSIVE_TEST 3062 ", aggressive tests" 3063#endif 3064#ifdef CHECK_BINSEARCH 3065 ", check binsearch" 3066#endif --- 10 unchanged lines hidden (view full) --- 3077 } 3078} 3079 3080/* 3081 * called at umount time 3082 */ 3083void ext4_ext_release(struct super_block *sb) 3084{ |
3085 if (!EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS)) | 3085 if (!ext4_has_feature_extents(sb)) |
3086 return; 3087 3088#ifdef EXTENTS_STATS 3089 if (EXT4_SB(sb)->s_ext_blocks && EXT4_SB(sb)->s_ext_extents) { 3090 struct ext4_sb_info *sbi = EXT4_SB(sb); 3091 printk(KERN_ERR "EXT4-fs: %lu blocks in %lu extents (%lu ave)\n", 3092 sbi->s_ext_blocks, sbi->s_ext_extents, 3093 sbi->s_ext_blocks / sbi->s_ext_extents); --- 2852 unchanged lines hidden --- | 3086 return; 3087 3088#ifdef EXTENTS_STATS 3089 if (EXT4_SB(sb)->s_ext_blocks && EXT4_SB(sb)->s_ext_extents) { 3090 struct ext4_sb_info *sbi = EXT4_SB(sb); 3091 printk(KERN_ERR "EXT4-fs: %lu blocks in %lu extents (%lu ave)\n", 3092 sbi->s_ext_blocks, sbi->s_ext_extents, 3093 sbi->s_ext_blocks / sbi->s_ext_extents); --- 2852 unchanged lines hidden --- |