[Devel] (no subject)

Konstantin Khorenko khorenko at virtuozzo.com
Mon Jul 6 06:57:33 PDT 2015


<1434627777-3815-11-git-send-email-dmonakhov at openvz.org>
Subject: [PATCH RHEL7 COMMIT] ext4: ext4_ext_drop_refs ignode null path

The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.24
------>
commit ac04da5243e4332c40c3cba06704226a0c005f4e
Author: Dmitry Monakhov <dmonakhov at openvz.org>
Date:   Mon Jul 6 17:57:33 2015 +0400

    ext4: ext4_ext_drop_refs ignode null path
    
    This hank was part of following patch
    [RH7 PATCH 10/10] ext4: update defragmentation codebase
    Date: Thu, 18 Jun 2015 15:42:57 +0400
    Message-Id: <1434627777-3815-11-git-send-email-dmonakhov at openvz.org>
    
    But by unknown reason it was lost somewhere. This result in panic
    of xfstests ext4/304
    
    Signed-off-by: Dmitry Monakhov <dmonakhov at openvz.org>
---
 fs/ext4/extents.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 37d04d3..8b4a7fc 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -584,9 +584,12 @@ static void ext4_ext_show_move(struct inode *inode, struct ext4_ext_path *path,
 
 void ext4_ext_drop_refs(struct ext4_ext_path *path)
 {
-	int depth = path->p_depth;
+	int depth;
 	int i;
 
+	if (!path)
+		return;
+	depth = path->p_depth;
 	for (i = 0; i <= depth; i++, path++)
 		if (path->p_bh) {
 			brelse(path->p_bh);



More information about the Devel mailing list