diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2013-07-18 17:33:56 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-26 11:47:19 +0100 |
commit | 2cece576b351228cb24bf24a53845646a51f7f6b (patch) | |
tree | 1d8568a8cffe30bfcd7e0c605b025535a7e5d023 /meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb | |
parent | a758b9302145d0a5b8f6b0e7d276b521ccd49061 (diff) | |
download | poky-2cece576b351228cb24bf24a53845646a51f7f6b.tar.gz |
e2fsprogs: only update the icache for ext2_inode
We only read the cache when:
bufsize == sizeof(struct ext2_inode)
then we should only update the cache in the same condition, otherwise
there would be errors, for example:
cache[0]: cached ino 14 when bufsize = 128 by ext2fs_write_inode_full()
cache[1]: cached ino 14 when bufsize = 156 by ext2fs_read_inode_full()
Then update the cache:
cache[0]: cached ino 15 when bufsize = 156 by ext2fs_read_inode_full()
Then the ino 14 would hit the cache[1] when bufsize = 128 (but it was
cached by bufsize = 156), so there would be errors.
[YOCTO #3848]
(From OE-Core rev: ad8452196c5b1a54c14fd00bbf421f68aea65186)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb index 22618e63fb..2681f98f00 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb | |||
@@ -5,6 +5,7 @@ SRC_URI += "file://acinclude.m4 \ | |||
5 | file://remove.ldconfig.call.patch \ | 5 | file://remove.ldconfig.call.patch \ |
6 | file://debugfs-too-short.patch \ | 6 | file://debugfs-too-short.patch \ |
7 | file://debugfs-sparse-copy.patch \ | 7 | file://debugfs-sparse-copy.patch \ |
8 | file://fix-icache.patch \ | ||
8 | " | 9 | " |
9 | 10 | ||
10 | SRC_URI[md5sum] = "8ef664b6eb698aa6b733df59b17b9ed4" | 11 | SRC_URI[md5sum] = "8ef664b6eb698aa6b733df59b17b9ed4" |