From: Todd Poynor Date: Tue, 18 Oct 2005 23:29:38 +0000 (+0100) Subject: [JFFS2] Return 0, not number of bytes written, for success at commit_write X-Git-Tag: v2.6.15-rc1~448^2~28 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fc67fbe52d7c34dfd3e03a1a79f3e078904bba2;hp=4fc67fbe52d7c34dfd3e03a1a79f3e078904bba2;p=linux-2.6 [JFFS2] Return 0, not number of bytes written, for success at commit_write Some callers to block-layer commit_write function treat non-zero return as error, notably the loopback mount driver sometimes used in conjunction with JFFS2 on NAND flash for bad block avoidance, etc. Return zero for success as do various other commit_write functions. Signed-off-by: Todd Poynor Signed-off-by: Thomas Gleixner ---