public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2 for 2.6.31] ext4: Use -1 as the fake block number for delayed new buffer_head
@ 2009-04-29 11:13 Aneesh Kumar K.V
  2009-04-29 11:13 ` [PATCH 2/2 for 2.6.31] ext4: Mark the unwritten buffer_head mapped during write_begin Aneesh Kumar K.V
  2009-05-01 18:58 ` [PATCH 1/2 for 2.6.31] ext4: Use -1 as the fake block number for delayed new buffer_head Theodore Tso
  0 siblings, 2 replies; 5+ messages in thread
From: Aneesh Kumar K.V @ 2009-04-29 11:13 UTC (permalink / raw)
  To: cmm, tytso, sandeen; +Cc: linux-ext4, Aneesh Kumar K.V

Block number '0' should not be used as the fake block number for
the delayed new buffer. This will result in vfs calling umap_underlying_metadata for
block number '0'. So  use -1 instead.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>

---
 fs/ext4/inode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index e91f978..3afd5f1 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2318,7 +2318,7 @@ static int ext4_da_get_block_prep(struct inode *inode, sector_t iblock,
 			/* not enough space to reserve */
 			return ret;
 
-		map_bh(bh_result, inode->i_sb, 0);
+		map_bh(bh_result, inode->i_sb, -1);
 		set_buffer_new(bh_result);
 		set_buffer_delay(bh_result);
 	} else if (ret > 0) {
-- 
tg: (56a50ad..) ext4_corruption_fix (depends on: master)

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-01 22:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-29 11:13 [PATCH 1/2 for 2.6.31] ext4: Use -1 as the fake block number for delayed new buffer_head Aneesh Kumar K.V
2009-04-29 11:13 ` [PATCH 2/2 for 2.6.31] ext4: Mark the unwritten buffer_head mapped during write_begin Aneesh Kumar K.V
2009-05-01 18:58 ` [PATCH 1/2 for 2.6.31] ext4: Use -1 as the fake block number for delayed new buffer_head Theodore Tso
2009-05-01 19:05   ` Aneesh Kumar K.V
2009-05-01 22:59     ` Theodore Tso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox