summaryrefslogtreecommitdiff
path: root/ext2fs/balloc.c
AgeCommit message (Collapse)Author
2000-03-102000-03-09 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* balloc.c (ext2_free_blocks, ext2_new_block): Fix formats to avoid -Wformat warnings. * getblk.c (ext2_alloc_block, inode_getblk, ext2_getblk): Likewise. * ialloc.c (ext2_count_free_inodes): Likewise. * truncate.c (trunc_direct): Likewise. * pager.c (pending_blocks_write, diskfs_grow): Likewise.
1999-10-021999-10-02 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* bitmap.c (count_free, find_next_zero_bit, find_first_zero_bit): Make these all static inline. (ffz, ffz_nibble_map): Function and variable removed. (ffz): Replace decl with macro defined in terms of ffs. * ext2fs.h (count_free, find_next_zero_bit, find_first_zero_bit, ffz): Remove these declarations. * Makefile (SRCS): Remove bitmap.c. (LCLHDRS): Add bitmap.c here instead. * balloc.c, ialloc.c: #include "bitmap.c" here.
1999-10-011999-10-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* bitmap.c (memscan): Function removed. * ext2fs.h: Removed its decl. * balloc.c (memscan): New static function, defined using memchr.
1999-08-231999-08-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* balloc.c (ext2_free_blocks): Handle freeing across group boundary, as Linux 2.3.14 does. * balloc.c (ext2_check_blocks_bitmap): If RO_COMPAT_SPARSE_SUPER feature flag is set, or if group number is not a power of 3, 5, or 7 (I don't know why; this is what Linux 2.3.14 does), skip tests for superblocks and descriptor blocks being free in bitmap. * balloc.c (ext2_new_block): Take new arg PREALLOC_GOAL. Use that instead of hard-coded 8 as maximum of blocks to preallocate. Also test that instead of PREALLOC_COUNT to decide whether to try any preallocation at all. * getblk.c (ext2_alloc_block): Pass new arg to ext2_new_block. Use EXT2_DEFAULT_PREALLOC_BLOCKS as default (replaces hard-coded 8); For a regular file, use SBLOCK->s_prealloc_blocks before default. For a directory, use SBLOCK->s_dir_prealloc_blocks if the EXT2_FEATURE_COMPAT_DIR_PREALLOC flag is set, otherwise zero. * inode.c (diskfs_set_translator): Pass new arg (zero).
1999-05-231999-05-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ialloc.c (diskfs_alloc_node): Frob printf format to suppress warning. * getblk.c (ext2_getblk): Likewise. * balloc.c (ext2_free_blocks): Likewise. * hyper.c (get_hypermetadata): Likewise.
1995-09-15u32 --> block_tMiles Bader
1995-05-12(ext2_free_blocks, ext2_new_block): Get rid of the CHECK_STRICT variable,Miles Bader
and just always do the tests it controlled. Change uses of the ext2_{warning,error,panic} functions to not have the initial function name argument (it's now supplied automagically).
1995-05-09entered into RCSMiles Bader
1995-05-09Formerly balloc.c.~20~Miles Bader
1995-04-28Formerly balloc.c.~19~Miles Bader
1995-04-27Formerly balloc.c.~18~Miles Bader
1995-04-27Formerly balloc.c.~17~Miles Bader
1995-04-26Formerly balloc.c.~16~Miles Bader
1995-04-26Formerly balloc.c.~15~Miles Bader
1995-04-20Formerly balloc.c.~14~Miles Bader
1995-04-17Formerly balloc.c.~13~Miles Bader
1995-04-17Formerly balloc.c.~12~Miles Bader
1995-04-17Formerly balloc.c.~11~Miles Bader
1995-04-16Formerly balloc.c.~10~Miles Bader
1995-04-16Formerly balloc.c.~9~Miles Bader
1995-04-16Formerly balloc.c.~8~Miles Bader
1995-04-15Formerly balloc.c.~7~Miles Bader
1995-04-12Formerly balloc.c.~6~Miles Bader
1995-04-12Formerly balloc.c.~5~Miles Bader
1995-04-12Formerly balloc.c.~4~Miles Bader
1995-04-11Formerly balloc.c.~3~Miles Bader
1995-04-11Formerly balloc.c.~2~Miles Bader
1995-04-11Initial revisionMiles Bader