ufs: restore proper tail allocation
commit 8785d84d002c2ce0f68fbcd6c2c86be859802c7e upstream. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
044470266a
commit
db9aafaf90
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue