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:42:11 +0100 |
commit | ad8452196c5b1a54c14fd00bbf421f68aea65186 (patch) | |
tree | 4b4bca543d6e53a08c95a658e66697576652667c /meta/recipes-devtools/gdb/gdb.inc | |
parent | 723adaf8fbba61b7f1adc8e4a13ddf1cfb5c0bcf (diff) | |
download | openembedded-core-ad8452196c5b1a54c14fd00bbf421f68aea65186.tar.gz openembedded-core-ad8452196c5b1a54c14fd00bbf421f68aea65186.tar.bz2 openembedded-core-ad8452196c5b1a54c14fd00bbf421f68aea65186.zip |
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]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb.inc')
0 files changed, 0 insertions, 0 deletions