diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-08 02:42:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-14 13:16:24 +0200 |
commit | db9aafaf90b6eb27db4cec785a894c83b0c489aa (patch) | |
tree | 2b58d69239a8fa2379392071898b1eacae3760b0 /fs | |
parent | 044470266a5040585093e863f163f49024c3e459 (diff) | |
download | linux-stable-db9aafaf90b6eb27db4cec785a894c83b0c489aa.tar.gz linux-stable-db9aafaf90b6eb27db4cec785a894c83b0c489aa.tar.bz2 linux-stable-db9aafaf90b6eb27db4cec785a894c83b0c489aa.zip |
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>
Diffstat (limited to 'fs')
-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 a064cf44b143..d7b553300c85 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; |