diff options
| author | Ziyi Guo <n7l8m4@u.northwestern.edu> | 2026-02-11 02:20:52 +0000 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2026-02-27 12:17:52 +0100 |
| commit | 19134a133184fcc49c41cf42797cb2e7fef76065 (patch) | |
| tree | 5156473ba4d4bf5c0c4beda473e6665a4e286778 /samples/workqueue/stall_detector/git@git.tavy.me:linux.git | |
| parent | ad0e9663f0f5b0ed8e27d3690c5ac9de72243fba (diff) | |
ext2: avoid drop_nlink() during unlink of zero-nlink inode in ext2_unlink()
ext2_unlink() calls inode_dec_link_count() unconditionally, which
invokes drop_nlink(). If the inode was loaded from a corrupted disk
image with i_links_count == 0, drop_nlink()
triggers WARN_ON(inode->i_nlink == 0)
Follow the ext4 pattern from __ext4_unlink(): check i_nlink before
decrementing. If already zero, skip the decrement.
Signed-off-by: Ziyi Guo <n7l8m4@u.northwestern.edu>
Link: https://patch.msgid.link/20260211022052.973114-1-n7l8m4@u.northwestern.edu
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'samples/workqueue/stall_detector/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
