From: Keith Busch Date: Fri, 29 Aug 2014 15:06:12 +0000 (-0600) Subject: NVMe: Translate NVMe status to errno X-Git-Tag: omap-for-v3.19/fixes-rc1~94^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4ff9c8ddb6f0cec99a53ab26a5aa2ed0162c472;p=pandora-kernel.git NVMe: Translate NVMe status to errno This returns a more appropriate error for the "capacity exceeded" status. In case other NVMe statuses have a better errno, this patch adds a convience function to translate an NVMe status code to an errno for IO commands, defaulting to the current -EIO. Signed-off-by: Keith Busch Signed-off-by: Matthew Wilcox Signed-off-by: Jens Axboe --- Reading git-diff-tree failed