diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-08 06:42:03 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-14 13:06:01 (GMT) |
commit | 4896c87d246423b0c18e69594115af2db3d956f0 (patch) | |
tree | 1cbc706f2465fc273f58ff892e71fd37feb1b53a /fs/ufs/inode.c | |
parent | 61604a2626a3eb1c4f5617fda81d2ff90e409342 (diff) | |
download | linux-4896c87d246423b0c18e69594115af2db3d956f0.tar.xz |
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/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 190d64b..27f342d 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; |