From patchwork Wed Jul 4 13:38:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Block X-Patchwork-Id: 1156091 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 2568E3FE4F for ; Wed, 4 Jul 2012 13:39:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752797Ab2GDNi5 (ORCPT ); Wed, 4 Jul 2012 09:38:57 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:60596 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752734Ab2GDNiu (ORCPT ); Wed, 4 Jul 2012 09:38:50 -0400 Received: by bkwj10 with SMTP id j10so2632593bkw.19 for ; Wed, 04 Jul 2012 06:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=r8wxleSG0WunIQAywWhVhfeEWDHFGSbzH/Mjxuzgq0Y=; b=Ys+xLJQlPbsgO55ElaN5S4V4cM6341IS0xIWpjN7AOHiRCon9XOdp9Sr8nydm+oEax y8HoPXXCk5KhV2qMzFqsaxP1NAf44sIlAIHlNUh+6M+yv/cVJfijq7OGssszl9YLaama NLmRlTUlSSi9kTq4Ko13BA9V3qsvevCEcMYKNUtY+mAXE66BoPhmtBXH66pNP8SqueaD tpwFuWPNIE9In0XH6giNTVLa/gKelJRqcrQRvu8hRkOEJk279dTKSepDGx/0xl+0OFu8 gGzzqUpU4dforEbZYeHdj0gaiUiZzzzttcnIOjtgippkKf7qon6HAAKiA6EFlnFn+uni mOkg== Received: by 10.204.155.66 with SMTP id r2mr9019110bkw.131.1341409129629; Wed, 04 Jul 2012 06:38:49 -0700 (PDT) Received: from localhost.localdomain (p4FEF4B20.dip.t-dialin.net. [79.239.75.32]) by mx.google.com with ESMTPS id t23sm11317858bks.4.2012.07.04.06.38.47 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Jul 2012 06:38:48 -0700 (PDT) From: Alexander Block To: linux-btrfs@vger.kernel.org Cc: Alexander Block Subject: [RFC PATCH 1/7] Btrfs: use _IOR for BTRFS_IOC_SUBVOL_GETFLAGS Date: Wed, 4 Jul 2012 15:38:22 +0200 Message-Id: <1341409108-13567-2-git-send-email-ablock84@googlemail.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1341409108-13567-1-git-send-email-ablock84@googlemail.com> References: <1341409108-13567-1-git-send-email-ablock84@googlemail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org We used the wrong ioctl macro for the getflags ioctl before. As we don't have the set/getflags ioctls in the user space ioctl.h at the moment, it's safe to fix it now. Reviewed-by: David Sterba Signed-off-by: Alexander Block --- fs/btrfs/ioctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h index 497c530..e440aa6 100644 --- a/fs/btrfs/ioctl.h +++ b/fs/btrfs/ioctl.h @@ -339,7 +339,7 @@ struct btrfs_ioctl_get_dev_stats { #define BTRFS_IOC_WAIT_SYNC _IOW(BTRFS_IOCTL_MAGIC, 22, __u64) #define BTRFS_IOC_SNAP_CREATE_V2 _IOW(BTRFS_IOCTL_MAGIC, 23, \ struct btrfs_ioctl_vol_args_v2) -#define BTRFS_IOC_SUBVOL_GETFLAGS _IOW(BTRFS_IOCTL_MAGIC, 25, __u64) +#define BTRFS_IOC_SUBVOL_GETFLAGS _IOR(BTRFS_IOCTL_MAGIC, 25, __u64) #define BTRFS_IOC_SUBVOL_SETFLAGS _IOW(BTRFS_IOCTL_MAGIC, 26, __u64) #define BTRFS_IOC_SCRUB _IOWR(BTRFS_IOCTL_MAGIC, 27, \ struct btrfs_ioctl_scrub_args)