Skip to content

Commit db9aafa

Browse files
Al Virogregkh
authored andcommitted
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>
1 parent 0444702 commit db9aafa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ufs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ ufs_inode_getfrag(struct inode *inode, unsigned index,
284284
goal += uspi->s_fpb;
285285
}
286286
tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment),
287-
goal, uspi->s_fpb, err, locked_page);
287+
goal, nfrags, err, locked_page);
288288

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

0 commit comments

Comments
 (0)