Commit 1b4dcb34 authored by Al Viro's avatar Al Viro Committed by Thadeu Lima de Souza Cascardo

ufs: restore proper tail allocation

BugLink: http://bugs.launchpad.net/bugs/1698799

commit 8785d84d upstream.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
parent 3c126c8d
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment