optimization: find(1) is 20-200% faster for disk based and 300-600% faster

for memory cache based directory traversals
master
szaka 2007-09-26 20:40:18 +00:00
parent ffa355c0f8
commit f557e5f6ba
1 changed files with 2 additions and 0 deletions

View File

@ -578,6 +578,8 @@ static int ntfs_filldir(ntfs_inode *dir_ni, s64 *pos, u8 ivcn_bits,
return 0;
if (ie->key.file_name.file_attributes & FILE_ATTR_I30_INDEX_PRESENT)
dt_type = NTFS_DT_DIR;
else if (fn->file_attributes & FILE_ATTR_SYSTEM)
dt_type = NTFS_DT_UNKNOWN;
else
dt_type = NTFS_DT_REG;
return filldir(dirent, fn->file_name, fn->file_name_length,