Skip to content

Commit

Permalink
xfs: xfs_commit_metadata returns wrong errno
Browse files Browse the repository at this point in the history
Invert it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
  • Loading branch information
Dave Chinner authored and Dave Chinner committed May 14, 2014
1 parent 8ff1e67 commit b38a134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ xfs_fs_nfs_commit_metadata(

if (!lsn)
return 0;
return _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
return -_xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
}

const struct export_operations xfs_export_operations = {
Expand Down

0 comments on commit b38a134

Please sign in to comment.