Commit 6958909
committed
Resolve cache leak from hard link
Add the 'ihold()' into 'simplefs_link' function
The hard link cache and old file cache are both in the cache list,
the "kill_block_super" attempts to free the inode cache, it will
decrement "i_count" twice. Therefore, if 'i_count' is not 0,
'destroy_inode' will not be called.1 parent f18a398 commit 6958909
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
| 900 | + | |
900 | 901 | | |
901 | 902 | | |
902 | 903 | | |
| |||
0 commit comments