Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8785d84d authored by Al Viro's avatar Al Viro
Browse files

ufs: restore proper tail allocation



Cc: stable@vger.kernel.org
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a8c39544
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -284,7 +284,7 @@ ufs_inode_getfrag(struct inode *inode, unsigned index,
			goal += uspi->s_fpb;
	}
	tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment),
				goal, uspi->s_fpb, err, locked_page);
				goal, nfrags, err, locked_page);

	if (!tmp) {
		*err = -ENOSPC;