Skip to content
Commit 1e85ddb7 authored by mwleeds@mailtundra.com's avatar mwleeds@mailtundra.com Committed by Tom Rini
Browse files

zfs: Fix return value of fs_devread()



As evidenced by how other filesystems handle it, a return value of 0
from fs_devread() means failure; nonzero means success. The opposite
assumption was being made in zfs.c for the use of zfs_devread() so fix
the confusion by making zfs_devread() return 0 on success.

It probably doesn't make sense to change the handling of zfs_devread()
in zfs.c instead, because as it is it matches the semantics of the other
functions there.

Signed-off-by: default avatarPhaedrus Leeds <mwleeds@mailtundra.com>
parent 1fe745b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment