Avoid redundant block initialization when loading content files

This commit is contained in:
Andrea Mazzoleni 2026-09-09 17:56:44 +02:00
parent bc564e7465
commit b14f703d2b
4 changed files with 22 additions and 10 deletions

View file

@ -883,7 +883,7 @@ static inline void file_flag_clear(struct snapraid_file* file, unsigned mask)
}
/**
* Allocate a file.
* Allocate a file without initializing its blocks.
*/
struct snapraid_file* file_alloc(unsigned block_size, const char* sub, data_off_t size, uint64_t mtime_sec, int mtime_nsec, uint64_t inode);