summaryrefslogtreecommitdiff
path: root/packages/linux/linux-openzaurus-2.6.17+git
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2006-07-05 16:46:46 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-07-05 16:46:46 +0000
commitd8520f8034086c6a1ecc08b17d038448a6fef7ae (patch)
treea36ac87f9a70b11d3fe4b2ccddeb86f374880ec7 /packages/linux/linux-openzaurus-2.6.17+git
parentfaa278eb98418094bcc3b4b9b4f9f40747811293 (diff)
parent1be1185ff9c0f9a80f5c76b06cfd7d1da06b56f6 (diff)
merge of 384828c9ac96947ed787099eb14a15f49ebedcac
and b3afec9600880ee22a3041769633491d0f81c427
Diffstat (limited to 'packages/linux/linux-openzaurus-2.6.17+git')
-rw-r--r--packages/linux/linux-openzaurus-2.6.17+git/squashfs3.0-2.6.15.patch7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/linux/linux-openzaurus-2.6.17+git/squashfs3.0-2.6.15.patch b/packages/linux/linux-openzaurus-2.6.17+git/squashfs3.0-2.6.15.patch
index f88dbbae8e..6fec9eba03 100644
--- a/packages/linux/linux-openzaurus-2.6.17+git/squashfs3.0-2.6.15.patch
+++ b/packages/linux/linux-openzaurus-2.6.17+git/squashfs3.0-2.6.15.patch
@@ -533,7 +533,7 @@ diff --new-file -urp linux-2.6.15/fs/squashfs/inode.c linux-2.6.15-squashfs3.0/f
+ *s, long long start_block,
+ int length)
+{
-+ int i, n;
++ int i, n, nf;
+ struct squashfs_sb_info *msblk = s->s_fs_info;
+
+ while ( 1 ) {
@@ -543,6 +543,8 @@ diff --new-file -urp linux-2.6.15/fs/squashfs/inode.c linux-2.6.15-squashfs3.0/f
+ msblk->fragment[i].block != start_block; i++);
+
+ if (i == SQUASHFS_CACHED_FRAGMENTS) {
++ nf = (msblk->next_fragment + 1) %
++ SQUASHFS_CACHED_FRAGMENTS;
+ for (i = msblk->next_fragment, n =
+ SQUASHFS_CACHED_FRAGMENTS; n &&
+ msblk->fragment[i].locked; n--, i = (i + 1) %
@@ -562,8 +564,7 @@ diff --new-file -urp linux-2.6.15/fs/squashfs/inode.c linux-2.6.15-squashfs3.0/f
+ &wait);
+ continue;
+ }
-+ msblk->next_fragment = (msblk->next_fragment + 1) %
-+ SQUASHFS_CACHED_FRAGMENTS;
++ msblk->next_fragment = nf;
+
+ if (msblk->fragment[i].data == NULL)
+ if (!(msblk->fragment[i].data = SQUASHFS_ALLOC