From: Eric Sandeen Date: Mon, 6 Apr 2015 23:19:51 +0000 (+1000) Subject: xfs_repair: dirty inode in process_sf_dir2 if we change namelen X-Git-Tag: v3.2.3-rc1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd361be7e2b9b01906a1630880a0ee854c22d43;p=thirdparty%2Fxfsprogs-dev.git xfs_repair: dirty inode in process_sf_dir2 if we change namelen There are two "fix sfep->namelen" cases, but we only mark *dino_dirty = 1 in one of them. Add the other to ensure that the change gets written out. Signed-off-by: Eric Sandeen Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- diff --git a/repair/dir2.c b/repair/dir2.c index 6b8964d4c..25793e90a 100644 --- a/repair/dir2.c +++ b/repair/dir2.c @@ -881,6 +881,7 @@ _("entry \"%*.*s\" in shortform directory %" PRIu64 " references %s inode %" PRI _("zero length entry in shortform dir %" PRIu64 ", resetting to %d\n"), ino, namelen); sfep->namelen = namelen; + *dino_dirty = 1; } else { do_warn( _("zero length entry in shortform dir %" PRIu64 ", would set to %d\n"),