- Use the correct flag mask when determining whether an inode has
successfully made it to the free list yet or not. This fixes a deadlock that can occur with unlinked but referenced files. Journal space and inodedeps were not correctly reclaimed because the inode block was not left dirty. Tested/Reported by: lwindschuh@googlemail.com
This commit is contained in:
parent
c1f98960a3
commit
2c3ae115b6
@ -9301,7 +9301,7 @@ handle_written_inodeblock(inodedep, bp)
|
||||
hadchanges = 1;
|
||||
}
|
||||
/* Leave this inodeblock dirty until it's in the list. */
|
||||
if ((inodedep->id_state & (UNLINKED | DEPCOMPLETE)) == UNLINKED)
|
||||
if ((inodedep->id_state & (UNLINKED | UNLINKONLIST)) == UNLINKED)
|
||||
hadchanges = 1;
|
||||
/*
|
||||
* If we had to rollback the inode allocation because of
|
||||
|
Loading…
Reference in New Issue
Block a user