diff options
| author | Luis Henriques <luis@igalia.com> | 2025-09-16 14:53:09 +0100 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2025-11-12 11:45:03 +0100 |
| commit | 64becd224ff99dbdcffab22709dfcf170e52aff1 (patch) | |
| tree | 2beea0c596c49d515aa14fcf585c357b59320f4b /fs/fuse/dev.c | |
| parent | ab84ad5973869a660ca3ad0c54a2b84d975d47c4 (diff) | |
fuse: new work queue to invalidate dentries from old epochs
With the infrastructure introduced to periodically invalidate expired
dentries, it is now possible to add an extra work queue to invalidate
dentries when an epoch is incremented. This work queue will only be
triggered when the 'inval_wq' parameter is set.
Signed-off-by: Luis Henriques <luis@igalia.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/dev.c')
| -rw-r--r-- | fs/fuse/dev.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 49b18d7accb3..6d59cbc877c6 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -2041,13 +2041,14 @@ static int fuse_notify_resend(struct fuse_conn *fc) /* * Increments the fuse connection epoch. This will result of dentries from - * previous epochs to be invalidated. - * - * XXX optimization: add call to shrink_dcache_sb()? + * previous epochs to be invalidated. Additionally, if inval_wq is set, a work + * queue is scheduled to trigger the invalidation. */ static int fuse_notify_inc_epoch(struct fuse_conn *fc) { atomic_inc(&fc->epoch); + if (inval_wq) + schedule_work(&fc->epoch_work); return 0; } |
