From: Dave Chinner Date: Wed, 14 May 2014 23:21:11 +0000 (+1000) Subject: xfs: xfs_dir_fsync() returns positive errno X-Git-Tag: v4.0~1747^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43ec1460a2189fbee87980dd3d3e64cba2f11e1f;p=platform%2Fkernel%2Flinux-amlogic.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 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