Re: [PATCH v5 07/11] fs/ceph: remove i_truncate_mutex, use i_fragtree_mutex for both
From: Ilya Dryomov
Date: Mon Nov 02 2026 - 14:42:59 EST
On Mon, Aug 24, 2026 at 8:42 PM Max Kellermann <max.kellermann@xxxxxxxxx> wrote:
>
> `i_fragtree_mutex` is only used for directories and `i_truncate_mutex`
> is only used for regular files. Since these two fields will never be
> both be used on any given object, let's merge them into one.
>
> (This is a minimal diff that defines a preprocessor macro, to avoid
> refactoring all code lines using these two mutexes.)
>
> This reduces the size of `struct ceph_inode_info` by 8 bytes.
Hi Max,
Only 8 bytes? struct mutex has got to be at least two if not three
times larger than that.
Thanks,
Ilya