Skip to content

Commit

Permalink
jfs: fix regression preventing coalescing of extents
Browse files Browse the repository at this point in the history
Commit fec1878 caused a regression in
which contiguous blocks being allocated to the end of an extent were
getting a new extent created.  This typically results in files entirely
made up of 1-block extents even though the blocks are contiguous on
disk.

Apparently grub doesn't handle a jfs file being fragmented into too many
extents, since it refuses to boot a kernel from jfs that was created by
the 2.6.30 kernel.

Signed-off-by: Dave Kleikamp <[email protected]>
Reported-by: Alex <[email protected]>
  • Loading branch information
Dave Kleikamp committed Jun 16, 2009
1 parent a525890 commit f7c52fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/jfs/jfs_extent.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ int extHint(struct inode *ip, s64 offset, xad_t * xp)
}
XADaddress(xp, xaddr);
XADlength(xp, xlen);
XADoffset(xp, prev);
/*
* only preserve the abnr flag within the xad flags
* of the returned hint.
Expand Down

0 comments on commit f7c52fd

Please sign in to comment.