From patchwork Mon Aug 16 16:25:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 119729 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7GGQaBS010297 for ; Mon, 16 Aug 2010 16:26:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755150Ab0HPQ0B (ORCPT ); Mon, 16 Aug 2010 12:26:01 -0400 Received: from mgw2.diku.dk ([130.225.96.92]:34742 "EHLO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755136Ab0HPQZ7 (ORCPT ); Mon, 16 Aug 2010 12:25:59 -0400 Received: from localhost (localhost [127.0.0.1]) by mgw2.diku.dk (Postfix) with ESMTP id 2ED7219BE62; Mon, 16 Aug 2010 18:25:58 +0200 (CEST) Received: from mgw2.diku.dk ([127.0.0.1]) by localhost (mgw2.diku.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25609-02; Mon, 16 Aug 2010 18:25:57 +0200 (CEST) Received: from nhugin.diku.dk (nhugin.diku.dk [130.225.96.140]) by mgw2.diku.dk (Postfix) with ESMTP id 3502F19BE21; Mon, 16 Aug 2010 18:25:57 +0200 (CEST) Received: from ask.diku.dk (ask.diku.dk [130.225.96.225]) by nhugin.diku.dk (Postfix) with ESMTP id 9D3F36DF894; Mon, 16 Aug 2010 18:24:30 +0200 (CEST) Received: by ask.diku.dk (Postfix, from userid 3767) id 1A70F200C3; Mon, 16 Aug 2010 18:25:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ask.diku.dk (Postfix) with ESMTP id 11016200BD; Mon, 16 Aug 2010 18:25:57 +0200 (CEST) Date: Mon, 16 Aug 2010 18:25:57 +0200 (CEST) From: Julia Lawall To: Chris Mason , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 5/16] fs/btrfs: Use available error codes Message-ID: MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 16 Aug 2010 16:26:53 +0000 (UTC) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 9254b3d..bc7e9c5 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -212,7 +212,7 @@ static int btrfs_ioctl_setflags(struct file *file, void __user *arg) mnt_drop_write(file->f_path.mnt); out_unlock: mutex_unlock(&inode->i_mutex); - return 0; + return ret; } static int btrfs_ioctl_getversion(struct file *file, int __user *arg)