Martin Schwenke has uploaded this change for review.

View Change

fsal: Make fsal_start_global_io() easier to understand

Use early returns for success.

Don't set *out_fd on error and then use it to decide which debug
message to log - just log a message for each failure. When both
fail there will now be 2 messages logged, but debug level logging is
pretty busy anyway.

This also makes subsequent changes more straightforward.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Change-Id: I6ff301d92f6e9f5d4a58edf8df065baf5d8ceadb
---
M src/FSAL/commonlib.c
1 file changed, 12 insertions(+), 12 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/46/1201746/1

To view, visit change 1201746. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I6ff301d92f6e9f5d4a58edf8df065baf5d8ceadb
Gerrit-Change-Number: 1201746
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Schwenke <martin@meltin.net>