xfs
[Top] [All Lists]

[PATCH 1/9] xfs: xfs_dir_fsync() returns positive errno

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/9] xfs: xfs_dir_fsync() returns positive errno
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Tue, 13 May 2014 18:56:05 +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>

And it should be negative.

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

diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 951a232..f499e47 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -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
-- 
1.9.0

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