Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1340261

[PATCH 39/56] staging/lustre: MAY_NOT_BLOCK is always defined, don't check for it.

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From green@linuxhacker.ru
Newsgroups linux.kernel
Subject [PATCH 39/56] staging/lustre: MAY_NOT_BLOCK is always defined, don't check for it.
Date Tue, 23 Feb 2016 05:10:04 +0100
Message-ID <r5css-8gx-71@gated-at.bofh.it> (permalink)
References <r5csp-8gx-3@gated-at.bofh.it>
X-Mailer git-send-email 2.1.0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 24
Organization linux.* mail to news gateway
X-Original-Cc Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Lustre Development List <lustre-devel@lists.lustre.org>, Oleg Drokin <green@linuxhacker.ru>
X-Original-Date Mon, 22 Feb 2016 21:54:17 -0500
X-Original-Message-ID <1456196074-754064-40-git-send-email-green@linuxhacker.ru>
X-Original-References <1456196074-754064-1-git-send-email-green@linuxhacker.ru>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1340261

Show key headers only | View raw


From: Oleg Drokin <green@linuxhacker.ru>

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
---
 drivers/staging/lustre/lustre/llite/file.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index bbe6ebf..ba65fc0 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -3071,10 +3071,8 @@ int ll_inode_permission(struct inode *inode, int mask)
 {
 	int rc = 0;
 
-#ifdef MAY_NOT_BLOCK
 	if (mask & MAY_NOT_BLOCK)
 		return -ECHILD;
-#endif
 
        /* as root inode are NOT getting validated in lookup operation,
 	* need to do it before permission check. */
-- 
2.1.0

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 39/56] staging/lustre: MAY_NOT_BLOCK is always defined, don't check for it. green@linuxhacker.ru - 2016-02-23 05:10 +0100

csiph-web