diff options
author | Roland McGrath <roland@gnu.org> | 1999-08-23 04:01:53 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-08-23 04:01:53 +0000 |
commit | fafaeb9b5d0b835b4b17a7d5f347be60e2ab5e5a (patch) | |
tree | a4a3b766e35cbb6ede6ade79bddd14fee0b4b84b /libnetfs/file-exec.c | |
parent | a6180efe4aef92ab609927e3a4a33dfb801eb2e0 (diff) |
1999-08-23 Roland McGrath <roland@baalperazim.frob.com>
* 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).
Diffstat (limited to 'libnetfs/file-exec.c')
0 files changed, 0 insertions, 0 deletions