Re: [PATCH v5 07/11] fs/ceph: remove i_truncate_mutex, use i_fragtree_mutex for both

From: Max Kellermann

Date: Mon Nov 02 2026 - 16:42:38 EST


On Mon, Nov 2, 2026 at 6:35 PM Ilya Dryomov <idryomov@xxxxxxxxx> wrote:
> Only 8 bytes? struct mutex has got to be at least two if not three
> times larger than that.

You're right, it's 32 bytes indeed.

This simple patch set saves ~ 3 GB RAM on each of our servers. Much
more memory savings would be possible with some effort.

--
Max Kellermann
Principal Architect
Hosting Technology

cm4all | Im Mediapark 6a | 50670 Köln | Germany
General information about the company can be found here:
https://www.cm4all.com/impressum
A member of the IONOS Group