[PATCH] Do not flush BufFile for regular temp files

Поиск
Список
Период
Сортировка
Искать

[PATCH] Do not flush BufFile for regular temp files

От:
Sergey Soloviev <sergey.soloviev@tantorlabs.ru>
Дата:
Вложения:
Hi, hackers!

I have noticed that when we call BufFileClose, then we flush any remaining data
to file unconditionally. But when we use regular temp files (BufFileCreateTemp),
then the file is deleted on close and that flush was useless.

There is simple patch checking whether we should flush data or not.

---
Sergey Soloviev

TantorLabs: https://tantorlabs.com
FAQ