* [PATCH] ext4: fix bigalloc regression
@ 2014-01-06 18:46 Eric Whitney
  2014-01-06 20:07 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Whitney @ 2014-01-06 18:46 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso
Commit f5a44db5d2 introduced a regression on filesystems created with
the bigalloc feature (cluster size > blocksize).  It causes xfstests
generic/006 and /013 to fail with an unexpected JBD2 failure and
transaction abort that leaves the test file system in a read only state.
Other xfstests run on bigalloc file systems are likely to fail as well.
The cause is the accidental use of a cluster mask where a cluster
offset was needed in ext4_ext_map_blocks().
Signed-off-by: Eric Whitney <enwlinux@gmail.com>
---
 fs/ext4/extents.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 4410cc3..3384dc4 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -4218,7 +4218,7 @@ int ext4_ext_map_blocks(handle_t *handle, struct inode *inode,
 	 */
 	map->m_flags &= ~EXT4_MAP_FROM_CLUSTER;
 	newex.ee_block = cpu_to_le32(map->m_lblk);
-	cluster_offset = EXT4_LBLK_CMASK(sbi, map->m_lblk);
+	cluster_offset = EXT4_LBLK_COFF(sbi, map->m_lblk);
 
 	/*
 	 * If we are doing bigalloc, check to see if the extent returned
-- 
1.8.3.2
^ permalink raw reply related	[flat|nested] 2+ messages in thread
* Re: [PATCH] ext4: fix bigalloc regression
  2014-01-06 18:46 [PATCH] ext4: fix bigalloc regression Eric Whitney
@ 2014-01-06 20:07 ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2014-01-06 20:07 UTC (permalink / raw)
  To: Eric Whitney; +Cc: linux-ext4
On Mon, Jan 06, 2014 at 01:46:19PM -0500, Eric Whitney wrote:
> Commit f5a44db5d2 introduced a regression on filesystems created with
> the bigalloc feature (cluster size > blocksize).  It causes xfstests
> generic/006 and /013 to fail with an unexpected JBD2 failure and
> transaction abort that leaves the test file system in a read only state.
> Other xfstests run on bigalloc file systems are likely to fail as well.
> 
> The cause is the accidental use of a cluster mask where a cluster
> offset was needed in ext4_ext_map_blocks().
> 
> Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Thanks, applied.
					- Ted
^ permalink raw reply	[flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-06 20:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-06 18:46 [PATCH] ext4: fix bigalloc regression Eric Whitney
2014-01-06 20:07 ` Theodore Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).