From: Sylvain Etienne Date: Thu, 23 Jun 2016 05:53:44 +0000 (+0200) Subject: ubifs: switch_gc_head: Remove redondant sync of wbuf X-Git-Tag: v4.8-rc1~39^2~7 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=13cd091364111508cc001aa66b5285fefe7cdd73;p=linux.git ubifs: switch_gc_head: Remove redondant sync of wbuf The wbuf is already sync-ed before ubifs_leb_unmap() Signed-off-by: Sylvain Etienne Acked-by: Artem Bityutskiy Signed-off-by: Richard Weinberger --- diff --git a/fs/ubifs/gc.c b/fs/ubifs/gc.c index 9718da86ad01..821b34816976 100644 --- a/fs/ubifs/gc.c +++ b/fs/ubifs/gc.c @@ -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;