ubifs: switch_gc_head: Remove redondant sync of wbuf
authorSylvain Etienne <seti@dadboo.eu>
Thu, 23 Jun 2016 05:53:44 +0000 (07:53 +0200)
committerRichard Weinberger <richard@nod.at>
Fri, 29 Jul 2016 21:32:37 +0000 (23:32 +0200)
The wbuf is already sync-ed before ubifs_leb_unmap()

Signed-off-by: Sylvain Etienne <seti@dadboo.eu>
Acked-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/gc.c

index 9718da86ad01a804db1e3c7e2a2ca6923f6299a3..821b34816976a112df8d950555500ed9bbf64361 100644 (file)
@@ -100,10 +100,6 @@ static int switch_gc_head(struct ubifs_info *c)
        if (err)
                return err;
 
-       err = ubifs_wbuf_sync_nolock(wbuf);
-       if (err)
-               return err;
-
        err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0);
        if (err)
                return err;