aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/balloc.c
Commit message (Collapse)AuthorAgeFilesLines
* 2000-03-09 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-101-5/+5
| | | | | | | | | * 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-02 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-021-2/+1
| | | | | | | | | | | | * 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-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-011-0/+10
| | | | | | * bitmap.c (memscan): Function removed. * ext2fs.h: Removed its decl. * balloc.c (memscan): New static function, defined using memchr.
* 1999-08-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-08-231-34/+74
| | | | | | | | | | | | | | | | | | | * 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-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-231-14/+14
| | | | | | | * 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.
* u32 --> block_tMiles Bader1995-09-151-2/+1
|
* (ext2_free_blocks, ext2_new_block): Get rid of the CHECK_STRICT variable,Miles Bader1995-05-121-49/+30
| | | | | | 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).
* entered into RCSMiles Bader1995-05-091-1/+1
|
* Formerly balloc.c.~20~Miles Bader1995-05-091-2/+19
|
* Formerly balloc.c.~19~Miles Bader1995-04-281-8/+5
|
* Formerly balloc.c.~18~Miles Bader1995-04-271-12/+12
|
* Formerly balloc.c.~17~Miles Bader1995-04-271-1/+1
|
* Formerly balloc.c.~16~Miles Bader1995-04-261-1/+1
|
* Formerly balloc.c.~15~Miles Bader1995-04-261-4/+3
|
* Formerly balloc.c.~14~Miles Bader1995-04-201-1/+1
|
* Formerly balloc.c.~13~Miles Bader1995-04-171-6/+6
|
* Formerly balloc.c.~12~Miles Bader1995-04-171-5/+5
|
* Formerly balloc.c.~11~Miles Bader1995-04-171-12/+12
|
* Formerly balloc.c.~10~Miles Bader1995-04-161-6/+6
|
* Formerly balloc.c.~9~Miles Bader1995-04-161-6/+6
|
* Formerly balloc.c.~8~Miles Bader1995-04-161-6/+6
|
* Formerly balloc.c.~7~Miles Bader1995-04-151-18/+36
|
* Formerly balloc.c.~6~Miles Bader1995-04-121-120/+91
|
* Formerly balloc.c.~5~Miles Bader1995-04-121-489/+367
|
* Formerly balloc.c.~4~Miles Bader1995-04-121-3/+1
|
* Formerly balloc.c.~3~Miles Bader1995-04-111-20/+20
|
* Formerly balloc.c.~2~Miles Bader1995-04-111-8/+8
|
* Initial revisionMiles Bader1995-04-111-0/+583