Skip to contentSkip to conversation

2.5 trivial reiserfs resizer patch (needed now that

PATCH New Hans Reiser 1 participant 1 message Feb 14, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5 trivial reiserfs resizer patch (needed now that

mark_buffer_dirty requires buffer to be uptodate already)
Content-Type: multipart/mixed;
boundary="------------050908040703060205000401"

This is a multi-part message in MIME format. --------------050908040703060205000401
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Signature · 73 lines
Hans


--------------050908040703060205000401
Content-Type: message/rfc822;
 name="Trivial resizer fix for 2.5, please forward to Linus."
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Trivial resizer fix for 2.5, please forward to Linus."

Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: (qmail 5381 invoked from network); 14 Feb 2003 08:46:38 -0000
Received: from angband.namesys.com ([email protected])
  by thebsh.namesys.com with SMTP; 14 Feb 2003 08:46:38 -0000
Received: by angband.namesys.com (Postfix on SuSE Linux 7.3 (i386), from userid 521)
	id 92208452F0A; Fri, 14 Feb 2003 11:46:36 +0300 (MSK)
Date: Fri, 14 Feb 2003 11:46:36 +0300
From: Oleg Drokin <[email protected]>
To: [email protected]
Subject: Trivial resizer fix for 2.5, please forward to Linus.
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.22.1i

Hello!

   This trivial changeset fixes reiserfs resizer crash now that
   mark_buffer_dirty requires buffer to be uptodate already.
   Noticed by Alex Tomas <[email protected]>

   Please pull from bk://namesys.com/bk/reiser3-linux-2.5-resizer-fix

Diffstat:
 resize.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Plain text patch:

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1060  -> 1.1061 
#	fs/reiserfs/resize.c	1.11    -> 1.12   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/02/14	[email protected]	1.1061
# reiserfs: Move mark_buffer_uptodate in front of mark_buffer_dirty in resizer.
#   This is needed because mark_buffer_dirty is now checking if buffer is up to date.
#   Noticed by Alex Tomas <[email protected]>
# --------------------------------------------
#
diff -Nru a/fs/reiserfs/resize.c b/fs/reiserfs/resize.c
--- a/fs/reiserfs/resize.c	Fri Feb 14 11:39:28 2003
+++ b/fs/reiserfs/resize.c	Fri Feb 14 11:39:28 2003
@@ -118,8 +118,8 @@
 		memset(bitmap[i].bh->b_data, 0, sb_blocksize(sb));
 		reiserfs_test_and_set_le_bit(0, bitmap[i].bh->b_data);
 
-		mark_buffer_dirty(bitmap[i].bh) ;
 		set_buffer_uptodate(bitmap[i].bh);
+		mark_buffer_dirty(bitmap[i].bh) ;
 		sync_dirty_buffer(bitmap[i].bh);
 		// update bitmap_info stuff
 		bitmap[i].first_zero_hint=1;



--------------050908040703060205000401--