• Solofo Ramangalahy's avatar
    ext4: cleanup for compiling mballoc with verification and debugging #defines · 60bd63d1
    Solofo Ramangalahy authored
    This patch allows compiling mballoc with:
    #define AGGRESSIVE_CHECK
    #define DOUBLE_CHECK
    #define MB_DEBUG
    
    It fixes:
    Compilation errors:
    fs/ext4/mballoc.c: In function '__mb_check_buddy':
    fs/ext4/mballoc.c:605: error: 'struct ext4_prealloc_space' has no member named 'group_list'
    fs/ext4/mballoc.c:606: error: 'struct ext4_prealloc_space' has no member named 'pstart'
    fs/ext4/mballoc.c:608: error: 'struct ext4_prealloc_space' has no member named 'len'
    
    Compilation warnings:
    fs/ext4/mballoc.c: In function 'ext4_mb_normalize_group_request':
    fs/ext4/mballoc.c:2863: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'int'
    fs/ext4/mballoc.c: In function 'ext4_mb_use_inode_pa':
    fs/ext4/mballoc.c:3103: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'int'
    
    Sparse check:
    fs/ext4/mballoc.c:3818:2: warning: context imbalance in 'ext4_mb_show_ac' - different lock contexts for basic block
    Signed-off-by: default avatarSolofo Ramangalahy <Solofo.Ramangalahy@bull.net>
    Signed-off-by: default avatarMingming Cao <cmm@us.ibm.com>
    Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
    60bd63d1
mballoc.c 124 KB