commit | 8785d84d002c2ce0f68fbcd6c2c86be859802c7e | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Jun 08 02:42:03 2017 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Fri Jun 09 16:28:01 2017 -0400 |
tree | 7a10613dbe6d2653a1dd8b45417f64fe82ab7294 | |
parent | a8c39544a6eb2093c04afd5005b6192bd0e880c6 [diff] [blame] |
ufs: restore proper tail allocation Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 7e41aee..feb5f28 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c
@@ -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;