From patchwork Sun Jan 20 15:22:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 2008241 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id A171A3FD1A for ; Sun, 20 Jan 2013 15:22:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752273Ab3ATPWp (ORCPT ); Sun, 20 Jan 2013 10:22:45 -0500 Received: from mail-ea0-f178.google.com ([209.85.215.178]:51039 "EHLO mail-ea0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752245Ab3ATPWo (ORCPT ); Sun, 20 Jan 2013 10:22:44 -0500 Received: by mail-ea0-f178.google.com with SMTP id a14so2179562eaa.9 for ; Sun, 20 Jan 2013 07:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=np2J3gPod5HFJBvPB2/m4ocwu2PfHUuzLph8xrHgpig=; b=TasvLJp4aSnOSLm6c9dlTouyug4mGOv8pOAJs0boqSukLpDZCScqfBk8pB9UHsr5is 253vL8ada8OqnQ0giRxCQXo+gLH1KSpRKMaFUZb8LNMFGVfY+MVrgksKLyvaq32fhuf5 T8YFzuRJMZhkg2CQiNZaSoEebFzkq3gZAFfOyFNEmvEdcT1O6PX/CsMwtqdVQdhiMY2B /XzZrM3Gv7BIt3ap4ZTsDmF0Txacr7eozLDPYq6SduzKsNCV1LGnfoYXO/z709Oftjxh 00EKQwwLoLgQGsxeEUH4gbd3t9hE8CN+pOLzVgx+CIVDFDUD3VAZ9Dyys1pVIZ5MPiNU SKIg== X-Received: by 10.14.202.3 with SMTP id c3mr50142994eeo.4.1358695363072; Sun, 20 Jan 2013 07:22:43 -0800 (PST) Received: from localhost ([109.110.76.247]) by mx.google.com with ESMTPS id z8sm17828698eeo.11.2013.01.20.07.22.41 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 20 Jan 2013 07:22:42 -0800 (PST) From: Ilya Dryomov To: linux-btrfs@vger.kernel.org Cc: Chris Mason , Stefan Behrens , idryomov@gmail.com Subject: [PATCH 3/5] Btrfs: fix unlock order in btrfs_ioctl_resize Date: Sun, 20 Jan 2013 17:22:30 +0200 Message-Id: <1358695352-7140-4-git-send-email-idryomov@gmail.com> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1358695352-7140-1-git-send-email-idryomov@gmail.com> References: <1358695352-7140-1-git-send-email-idryomov@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Fix unlock order in btrfs_ioctl_resize(). Signed-off-by: Ilya Dryomov --- fs/btrfs/ioctl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 3aebb28..b9a0190 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -1447,8 +1447,8 @@ out_free: kfree(vol_args); out: mutex_unlock(&root->fs_info->volume_mutex); - mnt_drop_write_file(file); atomic_set(&root->fs_info->mutually_exclusive_operation_running, 0); + mnt_drop_write_file(file); return ret; }