diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-05-15 01:21:11 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-05-15 01:21:11 +0200 |
commit | 43ec1460a2189fbee87980dd3d3e64cba2f11e1f (patch) | |
tree | 79f2b9c4bddde5a0ea190fee1932cd2db40489ce | |
parent | Linux 3.15-rc5 (diff) | |
download | linux-43ec1460a2189fbee87980dd3d3e64cba2f11e1f.tar.xz linux-43ec1460a2189fbee87980dd3d3e64cba2f11e1f.zip |
xfs: xfs_dir_fsync() returns positive errno
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>
-rw-r--r-- | fs/xfs/xfs_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 951a2321ee01..f499e47d44d8 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 |