]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: llite: ll_write_begin/end not passing on errors
authorHiroya Nozaki <nozaki.hiroya@jp.fujitsu.com>
Thu, 10 Nov 2016 17:31:00 +0000 (12:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Nov 2016 15:02:55 +0000 (16:02 +0100)
commitf29b5bc526de5c9c8d3a82d30bf19b2dabc23dec
treec4357af943beea55c4b6fbd7dc987a099aa9d3dd
parent73b36838d6497e9138b914f16dde47ec8a8f9ba1
staging: lustre: llite: ll_write_begin/end not passing on errors

Because of a implementation of generic_perform_write(), write(2)
may return 0 with no errno even if EDQUOT or ENOSPC actually
happened in it. This patch fixes the issue with setting a proper
errno to ci_result.

Signed-off-by: Hiroya Nozaki <nozaki.hiroya@jp.fujitsu.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6732
Reviewed-on: http://review.whamcloud.com/15302
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/rw26.c