From patchwork Sat Sep 22 04:00:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [08/21,v5] debugfs: make lsdel command support inline data Date: Fri, 21 Sep 2012 18:00:56 -0000 From: Zheng Liu X-Patchwork-Id: 186081 Message-Id: <1348286469-31690-9-git-send-email-wenqing.lz@taobao.com> To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, Zheng Liu From: Zheng Liu Signed-off-by: Zheng Liu --- debugfs/lsdel.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/debugfs/lsdel.c b/debugfs/lsdel.c index bed0ce6..71546c7 100644 --- a/debugfs/lsdel.c +++ b/debugfs/lsdel.c @@ -149,7 +149,8 @@ void do_lsdel(int argc, char **argv) "while calling ext2fs_block_iterate2"); goto next; } - if (lsd.free_blocks && !lsd.bad_blocks) { + if (lsd.free_blocks && !lsd.bad_blocks || + inode.i_flags & EXT4_INLINE_DATA_FL) { if (num_delarray >= max_delarray) { max_delarray += 50; delarray = realloc(delarray,