diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index 8295c5b5d4a9591e5d112d88ec99a8fd50bcc4d7..26ca3361a8bcc3525758ed00c6186fb62494a6e3 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c @@ -392,7 +392,7 @@ static int gfs2_dirent_find_space(const struct gfs2_dirent *dent, unsigned totlen = be16_to_cpu(dent->de_rec_len); if (gfs2_dirent_sentinel(dent)) - actual = GFS2_DIRENT_SIZE(0); + actual = 0; if (totlen - actual >= required) return 1; return 0;