From: Dave Chinner Date: Wed, 14 May 2014 23:21:52 +0000 (+1000) Subject: xfs: xfs_commit_metadata returns wrong errno X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b38a134b22fbd0bed90f3e079bbf8cb2962a52be;p=linux-beck.git xfs: xfs_commit_metadata returns wrong errno Invert it. Signed-off-by: Dave Chinner Reviewed-by: Jie Liu Signed-off-by: Dave Chinner --- diff --git a/fs/xfs/xfs_export.c b/fs/xfs/xfs_export.c index 1399e187d425..753e467aa1a5 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 = {