mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
When we write extended attributes, assert that the inode hasn't
already been deleted. The assertion is important to show that we won't end up accounting for extended attribute blocks (using fs_pendingblocks) in our subsequent call to fs_alloc(). Agreed verbally by: mckusick MFC after: 3 weeks
This commit is contained in:
parent
8b8ed7a78e
commit
dd51858d31
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167719
@ -1029,6 +1029,9 @@ ffs_extwrite(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *ucred)
|
||||
fs = ip->i_fs;
|
||||
dp = ip->i_din2;
|
||||
|
||||
KASSERT(!(ip->i_flag & IN_SPACECOUNTED), ("inode %u: inode is dead",
|
||||
ip->i_number));
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (uio->uio_rw != UIO_WRITE || fs->fs_magic != FS_UFS2_MAGIC)
|
||||
panic("ffs_extwrite: mode");
|
||||
|
Loading…
Reference in New Issue
Block a user