| Submitter | Zheng Liu |
|---|---|
| Date | July 1, 2012, 1:48 p.m. |
| Message ID | <1341150538-32047-24-git-send-email-wenqing.lz@taobao.com> |
| Download | mbox | patch |
| Permalink | /patch/168419/ |
| State | Superseded |
| Headers | show |
Comments
Patch
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index 9069735..cf32068 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -1445,8 +1445,9 @@ void do_undel(int argc, char *argv[]) if (debugfs_write_inode(ino, &inode, argv[0])) return; - ext2fs_block_iterate3(current_fs, ino, BLOCK_FLAG_READ_ONLY, NULL, - mark_blocks_proc, NULL); + if (!ext2fs_has_inline_data(current_fs, ino)) + ext2fs_block_iterate3(current_fs, ino, BLOCK_FLAG_READ_ONLY, NULL, + mark_blocks_proc, NULL); ext2fs_inode_alloc_stats2(current_fs, ino, +1, 0);