diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-08 09:42:03 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-09 23:28:01 +0300 |
commit | 8785d84d002c2ce0f68fbcd6c2c86be859802c7e (patch) | |
tree | 7a10613dbe6d2653a1dd8b45417f64fe82ab7294 /fs/ufs/inode.c | |
parent | a8c39544a6eb2093c04afd5005b6192bd0e880c6 (diff) | |
download | linux-8785d84d002c2ce0f68fbcd6c2c86be859802c7e.tar.xz |
ufs: restore proper tail allocation
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/inode.c')
-rw-r--r-- | fs/ufs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 7e41aee7b69a..feb5f280db09 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; |