[PATCH 6.18 444/614] fs: refactor file timestamp update logic