xfs
[Top] [All Lists]

[PATCH 3/9] xfs: xfs_commit_metadata returns wrong errno

To: xfs@xxxxxxxxxxx
Subject: [PATCH 3/9] xfs: xfs_commit_metadata returns wrong errno
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Tue, 13 May 2014 18:56:07 +1000
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1399971373-6242-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1399971373-6242-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

Invert it.

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
 fs/xfs/xfs_export.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_export.c b/fs/xfs/xfs_export.c
index 1399e18..753e467 100644
--- a/fs/xfs/xfs_export.c
+++ b/fs/xfs/xfs_export.c
@@ -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 = {
-- 
1.9.0

<Prev in Thread] Current Thread [Next in Thread>