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


Groups > linux.kernel > #1340261 > unrolled thread

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

Started bygreen@linuxhacker.ru
First post2016-02-23 05:10 +0100
Last post2016-02-23 05:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [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

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

Fromgreen@linuxhacker.ru
Date2016-02-23 05:10 +0100
Subject[PATCH 39/56] staging/lustre: MAY_NOT_BLOCK is always defined, don't check for it.
Message-ID<r5css-8gx-71@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web