mirror_zfs/man
Rob Norris 00ee7f9430 linux/super: add tunable to request immediate reclaim of unused dentries
Traditionally, unused dentries would be cached in the dentry cache until
the associated entry is no longer on disk. The cached dentry continues
to hold an inode reference, causing the inode to be pinned (see previous
commit).

Here we implement the dentry op d_delete, which is roughly analogous to
the drop_inode superblock op, and add a zfs_delete_dentry tunable to
control its behaviour. By default it continues the traditional
behaviour, but when the tunable is enabled, we signal that an unused
dentry should be freed immediately, releasing its inode reference, and
so allowing that inode to be deleted if no longer in use.

Sponsored-by: Klara, Inc.
Sponsored-by: Fastmail Pty Ltd
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17746
2026-02-11 16:18:01 -08:00
..
man1 Enable zhack to work properly with 4k sector size disks 2026-02-11 13:33:12 -08:00
man4 linux/super: add tunable to request immediate reclaim of unused dentries 2026-02-11 16:18:01 -08:00
man5 SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
man7 Increase meta-dnode redundancy in "some" mode 2025-08-05 13:15:44 -04:00
man8 Add allocation profile export and zhack subcommand for import 2026-02-11 10:27:01 -08:00
Makefile.am Introduce zfs rewrite subcommand (#17246) 2025-08-07 12:34:28 -04:00