mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 15:57:05 -05:00
Remove the #if defined(FFS) || defined(IFS) braces around the calls to
ffs_snapgone(). ufs.ko module is not build with FFS define, causing snapshot inode number slots in superblock never be freed, as well as a reference on the snapshot vnode. IFS was removed several years ago, and UFS/FFS separation was not maintained for real. Reported, analyzed and tested by: Yamagi Burmeister <lists yamagi org> MFC after: 3 days
This commit is contained in:
parent
19aad99109
commit
ffda66c299
1 changed files with 0 additions and 4 deletions
|
|
@ -1252,10 +1252,8 @@ out:
|
|||
* drop its snapshot reference so that it will be reclaimed
|
||||
* when last open reference goes away.
|
||||
*/
|
||||
#if defined(FFS) || defined(IFS)
|
||||
if (ip != 0 && (ip->i_flags & SF_SNAPSHOT) != 0 && ip->i_effnlink == 0)
|
||||
ffs_snapgone(ip);
|
||||
#endif
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
@ -1317,10 +1315,8 @@ ufs_dirrewrite(dp, oip, newinum, newtype, isrmdir)
|
|||
* drop its snapshot reference so that it will be reclaimed
|
||||
* when last open reference goes away.
|
||||
*/
|
||||
#if defined(FFS) || defined(IFS)
|
||||
if ((oip->i_flags & SF_SNAPSHOT) != 0 && oip->i_effnlink == 0)
|
||||
ffs_snapgone(oip);
|
||||
#endif
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue