From patchwork Wed Nov 4 19:03:50 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Mahoney X-Patchwork-Id: 57751 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA4JCW0i006234 for ; Wed, 4 Nov 2009 19:12:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755558AbZKDTMX (ORCPT ); Wed, 4 Nov 2009 14:12:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755091AbZKDTMW (ORCPT ); Wed, 4 Nov 2009 14:12:22 -0500 Received: from cpe-66-66-77-145.rochester.res.rr.com ([66.66.77.145]:38317 "EHLO galileo.lan.jeffreymahoney.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755277AbZKDTMV (ORCPT ); Wed, 4 Nov 2009 14:12:21 -0500 Received: by galileo.lan.jeffreymahoney.com (Postfix, from userid 1000) id 508D411C6; Wed, 4 Nov 2009 14:04:33 -0500 (EST) Message-Id: <20091104190433.036021313@suse.com> User-Agent: quilt/0.48-4.4 Date: Wed, 04 Nov 2009 14:03:50 -0500 From: Jeff Mahoney To: linux-btrfs@vger.kernel.org Subject: [patch 04/10] btrfs: btrfs_sync_file should return -EIO not EIO References: <20091104190346.971762946@suse.com> Content-Disposition: inline; filename=btrfs_sync_file-right-EIO Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1223,7 +1223,7 @@ int btrfs_sync_file(struct file *file, s } mutex_lock(&dentry->d_inode->i_mutex); out: - return ret > 0 ? EIO : ret; + return ret > 0 ? -EIO : ret; } static struct vm_operations_struct btrfs_file_vm_ops = {