The file map code isn't that smart yet...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22916 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c1fad34e5c
commit
ddd1769901
2
src/system/kernel/cache/file_map.cpp
vendored
2
src/system/kernel/cache/file_map.cpp
vendored
@ -221,7 +221,7 @@ file_map_set_size(void *_map, off_t size)
|
||||
|
||||
// TODO: honour offset/size parameters
|
||||
file_map *map = (file_map *)_map;
|
||||
if (size < map->size)
|
||||
// if (size < map->size)
|
||||
map->Free();
|
||||
map->size = size;
|
||||
}
|
||||
|
@ -220,7 +220,7 @@ fssh_file_map_set_size(void *_map, fssh_off_t size)
|
||||
|
||||
// TODO: honour offset/size parameters
|
||||
file_map *map = (file_map *)_map;
|
||||
if (size < map->size)
|
||||
//if (size < map->size)
|
||||
map->Free();
|
||||
map->size = size;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user