getattr is very expensive and in important cases only gets called to get the size. This can be optimized with a dedicated routine which obtains that statistic.
As a step towards there make size-only consumers use a dedicated routine.
Differential D37885
vfs: add vn_getsize mjg on Dec 27 2022, 9:45 PM. Authored by Tags None Referenced Files
Details
getattr is very expensive and in important cases only gets called to get the size. This can be optimized with a dedicated routine which obtains that statistic. As a step towards there make size-only consumers use a dedicated routine.
Diff Detail
|