Skip to content

Commit 34aa71c

Browse files
Al Virogregkh
authored andcommitted
ufs_extend_tail(): fix the braino in calling conventions of ufs_new_fragments()
commit 940ef1a0ed939c2ca029fca715e25e7778ce1e34 upstream. ... and it really needs splitting into "new" and "extend" cases, but that's for later Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d6bd1e7 commit 34aa71c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fs/ufs/inode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ ufs_extend_tail(struct inode *inode, u64 writes_to,
235235

236236
p = ufs_get_direct_data_ptr(uspi, ufsi, block);
237237
tmp = ufs_new_fragments(inode, p, lastfrag, ufs_data_ptr_to_cpu(sb, p),
238-
new_size, err, locked_page);
238+
new_size - (lastfrag & uspi->s_fpbmask), err,
239+
locked_page);
239240
return tmp != 0;
240241
}
241242

0 commit comments

Comments
 (0)