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 951a232..f499e47 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