linux/fs/ntfs3
Kari Argillander 162333efa8
fs/ntfs3: Limit binary search table size
Current binary search allocates memory for table and fill whole table
before we start actual binary search. This is quite inefficient because
table fill will always be O(n). Also if table is huge we need to
reallocate memory which is costly.

This implementation use just stack memory and always when table is full
we will check if last element is <= and if not start table fill again.
The idea was that it would be same cost as table reallocation.

Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
2021-09-13 19:41:46 +03:00
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
attrib.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
attrlist.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
bitfunc.c fs/ntfs3: Change right headers to bitfunc.c 2021-09-13 19:41:45 +03:00
bitmap.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
file.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
frecord.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
fslog.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
fsntfs.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
index.c fs/ntfs3: Limit binary search table size 2021-09-13 19:41:46 +03:00
inode.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
Kconfig fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
lznt.c fs/ntfs3: Change right headers to lznt.c 2021-09-13 19:41:45 +03:00
Makefile fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
namei.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
ntfs_fs.h fs/ntfs3: Add missing headers and forward declarations to ntfs_fs.h 2021-09-13 19:41:44 +03:00
ntfs.h fs/ntfs3: Add missing header files to ntfs.h 2021-09-13 19:41:44 +03:00
record.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
run.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
super.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
upcase.c fs/ntfs3: Change right headers to upcase.c 2021-09-13 19:41:45 +03:00
xattr.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00