xfs: xfs_dir_fsync() returns positive errno
authorDave Chinner <dchinner@redhat.com>
Wed, 14 May 2014 23:21:11 +0000 (09:21 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 14 May 2014 23:21:11 +0000 (09:21 +1000)
And it should be negative.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c

index 951a2321ee010f35c1d3395c09d0830d74197cfd..f499e47d44d87f3951450a70c0855a1b42d31718 100644 (file)
@@ -155,7 +155,7 @@ xfs_dir_fsync(
 
        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);
 }
 
 STATIC int