From: Dave Chinner Date: Wed, 14 May 2014 23:21:11 +0000 (+1000) Subject: xfs: xfs_dir_fsync() returns positive errno X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=43ec1460a2189fbee87980dd3d3e64cba2f11e1f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git xfs: xfs_dir_fsync() returns positive errno And it should be negative. Signed-off-by: Dave Chinner Reviewed-by: Jie Liu Signed-off-by: Dave Chinner --- 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