| Submitter | Zheng Liu |
|---|---|
| Date | Sept. 22, 2012, 4 a.m. |
| Message ID | <1348286469-31690-6-git-send-email-wenqing.lz@taobao.com> |
| Download | mbox | patch |
| Permalink | /patch/186079/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/lib/ext2fs/block.c b/lib/ext2fs/block.c index 68dcb03..4abcedf 100644 --- a/lib/ext2fs/block.c +++ b/lib/ext2fs/block.c @@ -345,6 +345,13 @@ errcode_t ext2fs_block_iterate3(ext2_filsys fs, return ctx.errcode; /* + * If an inode has inline data, we needn't traverse its blocks + * because no block belong to this inode. + */ + if (inode.i_flags & EXT4_INLINE_DATA_FL) + return ctx.errcode; + + /* * Check to see if we need to limit large files */ if (flags & BLOCK_FLAG_NO_LARGE) {