mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
ufs: restore proper tail allocation
commit 8785d84d00 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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user