linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Sylvain Etienne <seti@dadboo.eu>
To: linux-mtd@lists.infradead.org
Cc: Richard Weinberger <richard.weinberger@gmail.com>,
	Artem Bityutskiy <dedekind1@gmail.com>
Subject: [PATCH] ubifs: switch_gc_head: remove redondant sync of wbuf
Date: Thu, 23 Jun 2016 07:53:44 +0200	[thread overview]
Message-ID: <20160623055344.GA5896@dadboo.eu> (raw)

The wbuf is already sync-ed before ubifs_leb_unmap()

Signed-off-by: Sylvain Etienne <seti@dadboo.eu>
---

Notes:
    This is my first patch on this mailing list. Please let me know if I missed
    something.

 fs/ubifs/gc.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/ubifs/gc.c b/fs/ubifs/gc.c
index 9718da8..821b348 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;
-- 
2.7.4

             reply	other threads:[~2016-06-23  5:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-23  5:53 Sylvain Etienne [this message]
2016-06-23  7:47 ` [PATCH] ubifs: switch_gc_head: remove redondant sync of wbuf Richard Weinberger
2016-06-23  7:49   ` Boris Brezillon
2016-06-27 10:50 ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160623055344.GA5896@dadboo.eu \
    --to=seti@dadboo.eu \
    --cc=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard.weinberger@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).