Skip to content

Commit 940ef1a

Browse files
author
Al Viro
committed
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: [email protected] Signed-off-by: Al Viro <[email protected]>
1 parent 6b0d144 commit 940ef1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)