提交 8785d84d 编写于 作者: A Al Viro

ufs: restore proper tail allocation

Cc: stable@vger.kernel.org
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 a8c39544
...@@ -284,7 +284,7 @@ ufs_inode_getfrag(struct inode *inode, unsigned index, ...@@ -284,7 +284,7 @@ ufs_inode_getfrag(struct inode *inode, unsigned index,
goal += uspi->s_fpb; goal += uspi->s_fpb;
} }
tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment), tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment),
goal, uspi->s_fpb, err, locked_page); goal, nfrags, err, locked_page);
if (!tmp) { if (!tmp) {
*err = -ENOSPC; *err = -ENOSPC;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册