OSDN Git Service

xfs: xfs_commit_metadata returns wrong errno
[uclinux-h8/linux.git] / fs / xfs / xfs_export.c
index 1399e18..753e467 100644 (file)
@@ -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 = {