From patchwork Sun Apr 3 23:55:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sedat Dilek X-Patchwork-Id: 89571 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2006CB6F1E for ; Mon, 4 Apr 2011 09:57:40 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q6X9N-0003Xk-6T; Sun, 03 Apr 2011 23:56:09 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Q6X9L-00072O-O6; Sun, 03 Apr 2011 23:56:07 +0000 Received: from mail-fx0-f49.google.com ([209.85.161.49]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q6X9A-000725-5s for linux-mtd@lists.infradead.org; Sun, 03 Apr 2011 23:55:58 +0000 Received: by fxm14 with SMTP id 14so4534040fxm.36 for ; Sun, 03 Apr 2011 16:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=IEy7Px6MNsoTmnZfTfF7FM70utatY8fqCAvSzafv7yc=; b=HUSHrbZRFTFP2OZg1Fl47yQN+EarrZu0pjKai2xUi1Ez6Kzpohe02FzBv9M/0n3yz8 0FsimTEGIeQMEQI9lW5YxMwGul2YNhffvFLp6FqCBpXN4p8AZrwWA6rDBVHjBSABCaPp Pl+Vt0ZJFy1ifkKYKTQJHzW2f67jbZ03+W7r4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=cQBzEZh/0MXzayopT82hn52uuWEGU9x97uH655Wa/l8nkXaxUgb3ZCcZXkl4e7UOXp 8IVZzn/rdaAKlwowIDZFon0+TYPdoxBRuLEqEeci+E3gnsE82pBxB1zMnOmPqetRZ+Eq M86FG18JDl67Y5iI25kpY6FaqOoktF55UsTSo= Received: by 10.223.6.73 with SMTP id 9mr3637727fay.131.1301874952732; Sun, 03 Apr 2011 16:55:52 -0700 (PDT) Received: from localhost.localdomain (p548B72CF.dip.t-dialin.net [84.139.114.207]) by mx.google.com with ESMTPS id k5sm1498156faa.15.2011.04.03.16.55.50 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Apr 2011 16:55:51 -0700 (PDT) From: Sedat Dilek To: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ubifs: Use empty_iops and empty_fops consistently Date: Mon, 4 Apr 2011 01:55:39 +0200 Message-Id: <1301874939-2630-1-git-send-email-sedat.dilek@gmail.com> X-Mailer: git-send-email 1.7.4.3 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110403_195556_402449_896EFECC X-CRM114-Status: GOOD ( 12.88 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is freemail (sedat.dilek[at]googlemail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.161.49 listed in list.dnswl.org] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: Sedat Dilek , Jens Axboe , Adrian Hunter , Artem Bityutskiy X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Follow the nomenclature as we did for empty_aops and rename to empty_iops and empty_fops. This patch is on top of linux-2.6-block.git#for-linus. Signed-off-by: Sedat Dilek CC: Artem Bityutskiy CC: Adrian Hunter CC: Jens Axboe --- fs/ubifs/xattr.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c index 3299f46..16f19f5 100644 --- a/fs/ubifs/xattr.c +++ b/fs/ubifs/xattr.c @@ -80,8 +80,8 @@ enum { SECURITY_XATTR, }; -static const struct inode_operations none_inode_operations; -static const struct file_operations none_file_operations; +static const struct inode_operations empty_iops; +static const struct file_operations empty_fops; /** * create_xattr - create an extended attribute. @@ -131,8 +131,8 @@ static int create_xattr(struct ubifs_info *c, struct inode *host, /* Re-define all operations to be "nothing" */ inode->i_mapping->a_ops = &empty_aops; - inode->i_op = &none_inode_operations; - inode->i_fop = &none_file_operations; + inode->i_op = &empty_iops; + inode->i_fop = &empty_fops; inode->i_flags |= S_SYNC | S_NOATIME | S_NOCMTIME | S_NOQUOTA; ui = ubifs_inode(inode);