All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch "ufs_extend_tail(): fix the braino in calling conventions of ufs_new_fragments()" has been added to the 4.4-stable tree
@ 2017-06-12  9:19 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-06-12  9:19 UTC (permalink / raw)
  To: viro, gregkh; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    ufs_extend_tail(): fix the braino in calling conventions of ufs_new_fragments()

to the 4.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ufs_extend_tail-fix-the-braino-in-calling-conventions-of-ufs_new_fragments.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From 940ef1a0ed939c2ca029fca715e25e7778ce1e34 Mon Sep 17 00:00:00 2001
From: Al Viro <viro@zeniv.linux.org.uk>
Date: Thu, 8 Jun 2017 23:27:12 -0400
Subject: ufs_extend_tail(): fix the braino in calling conventions of ufs_new_fragments()

From: Al Viro <viro@zeniv.linux.org.uk>

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>

---
 fs/ufs/inode.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/fs/ufs/inode.c
+++ b/fs/ufs/inode.c
@@ -235,7 +235,8 @@ ufs_extend_tail(struct inode *inode, u64
 
 	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;
 }
 


Patches currently in stable-queue which might be from viro@zeniv.linux.org.uk are

queue-4.4/drivers-char-random-add-get_random_long.patch
queue-4.4/ufs-set-correct-s_maxsize.patch
queue-4.4/ufs_getfrag_block-we-only-grab-truncate_mutex-on-block-creation-path.patch
queue-4.4/ufs-restore-proper-tail-allocation.patch
queue-4.4/ufs_extend_tail-fix-the-braino-in-calling-conventions-of-ufs_new_fragments.patch
queue-4.4/ufs-restore-maintaining-i_blocks.patch
queue-4.4/fix-ufs_isblockset.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-12  9:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12  9:19 Patch "ufs_extend_tail(): fix the braino in calling conventions of ufs_new_fragments()" has been added to the 4.4-stable tree gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.