Skip to content

gfs2: unlinked inodes

Andreas Gruenbacher gfs2 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16gfs2: Rename GLF_VERIFY_EVICT to GLF_VERIFY_DELETEfs/gfs2/glock.c fs/gfs2/incore.h+8 -80 replies
2/16gfs2: Initialize gl_no_formal_ino earlierfs/gfs2/glock.c fs/gfs2/glops.c fs/gfs2/inode.c+9 -20 replies
3/16gfs2: Allow immediate GLF_VERIFY_DELETE workfs/gfs2/glock.c+6 -50 replies
4/16gfs2: Fix unlinked inode cleanupfs/gfs2/glock.c fs/gfs2/glock.h fs/gfs2/rgrp.c +1 more+4 -30 replies
5/16gfs2: Faster gfs2_upgrade_iopen_glock wakeupsfs/gfs2/glock.c fs/gfs2/glock.h fs/gfs2/super.c+15 -180 replies
6/16gfs2: Rename GIF_{DEFERRED -> DEFER}_DELETEfs/gfs2/glock.c fs/gfs2/incore.h fs/gfs2/super.c+4 -40 replies
7/16gfs2: Rename dinode_demise to evict_behaviorfs/gfs2/super.c+19 -180 replies
8/16gfs2: Return enum evict_behavior from gfs2_upgrade_iopen_glockfs/gfs2/super.c+14 -60 replies
9/16gfs2: Minor delete_work_func cleanupfs/gfs2/glock.c+3 -20 replies
10/16gfs2: Clean up delete work processingfs/gfs2/glock.c+7 -70 replies
11/16gfs2: Call gfs2_queue_verify_delete from gfs2_evict_inodefs/gfs2/glock.c fs/gfs2/super.c+10 -120 replies
12/16gfs2: Update to the evict / remote delete documentationfs/gfs2/glock.c fs/gfs2/super.c+11 -260 replies
13/16gfs2: Use mod_delayed_work in gfs2_queue_try_to_evictfs/gfs2/glock.c+1 -20 replies
14/16gfs2: Randomize GLF_VERIFY_DELETE work delayfs/gfs2/glock.c+2 -10 replies
15/16gfs2: Use get_random_u32 in gfs2_orlov_skipfs/gfs2/rgrp.c+1 -30 replies
16/16gfs2: Make gfs2_inode_refresh staticfs/gfs2/glops.c fs/gfs2/inode.h+1 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/16] gfs2: unlinked inodes

We have recently run into cases where unlinked inodes end up accumulating. This should only happen as a result of cluster node failures, and those unlinked inodes should be cleaned up during allocations. Sometimes, for some reason, neiter happened.

In turns out that this is mainly due to a bug in commit f0e56edc2ec7 ("gfs2: Split the two kinds of glock "delete" work"); see patch "gfs2:
Fix unlinked inode cleanup".

While going through the relevant parts of the code, I noticed a number of additional minor problems which this patch set addresses as well.

Any thoughts?

Thanks,
Andreas

Andreas Gruenbacher (16):
gfs2: Rename GLF_VERIFY_EVICT to GLF_VERIFY_DELETE
gfs2: Initialize gl_no_formal_ino earlier
gfs2: Allow immediate GLF_VERIFY_DELETE work
gfs2: Fix unlinked inode cleanup
gfs2: Faster gfs2_upgrade_iopen_glock wakeups
gfs2: Rename GIF_{DEFERRED -> DEFER}_DELETE
gfs2: Rename dinode_demise to evict_behavior
gfs2: Return enum evict_behavior from gfs2_upgrade_iopen_glock
gfs2: Minor delete_work_func cleanup
gfs2: Clean up delete work processing
gfs2: Call gfs2_queue_verify_delete from gfs2_evict_inode
gfs2: Update to the evict / remote delete documentation
gfs2: Use mod_delayed_work in gfs2_queue_try_to_evict
gfs2: Randomize GLF_VERIFY_DELETE work delay
gfs2: Use get_random_u32 in gfs2_orlov_skip
gfs2: Make gfs2_inode_refresh static

 fs/gfs2/glock.c  | 100 ++++++++++++++++-------------------------------
 fs/gfs2/glock.h  |   7 ++++
 fs/gfs2/glops.c  |  11 +++++-
 fs/gfs2/incore.h |   4 +-
 fs/gfs2/inode.c  |   1 +
 fs/gfs2/inode.h  |   2 -
 fs/gfs2/rgrp.c   |   6 +--
 fs/gfs2/super.c  |  76 +++++++++++++++++++++--------------
 8 files changed, 101 insertions(+), 106 deletions(-)
Signature · 1 line
2.46.0