diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-09 06:27:12 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-09 23:28:01 +0300 |
commit | 940ef1a0ed939c2ca029fca715e25e7778ce1e34 (patch) | |
tree | 12844c2edbaebe626e07c18fda601eb1f6409cb1 /fs/ufs | |
parent | 6b0d144fa758869bdd652c50aa41aaf601232550 (diff) | |
download | linux-940ef1a0ed939c2ca029fca715e25e7778ce1e34.tar.xz |
ufs_extend_tail(): fix the braino in calling conventions of ufs_new_fragments()
... and it really needs splitting into "new" and "extend" cases, but that's for
later
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs')
-rw-r--r-- | fs/ufs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index feb5f280db09..966cced0f88e 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -235,7 +235,8 @@ ufs_extend_tail(struct inode *inode, u64 writes_to, p = ufs_get_direct_data_ptr(uspi, ufsi, block); tmp = ufs_new_fragments(inode, p, lastfrag, ufs_data_ptr_to_cpu(sb, p), - new_size, err, locked_page); + new_size - (lastfrag & uspi->s_fpbmask), err, + locked_page); return tmp != 0; } |