mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robert Love <rml@novell.com>
To: ttb@tentacle.dhs.org
Cc: linux-kernel@vger.kernel.org
Subject: [patch] inotify: vfs_permission was replaced
Date: Wed, 17 Nov 2004 13:02:40 -0500	[thread overview]
Message-ID: <1100714560.6280.7.camel@betsy.boston.ximian.com> (raw)
In-Reply-To: <1100710677.6280.2.camel@betsy.boston.ximian.com>

John,

In 2.6.10-rc, vfs_permission() was replaced by generic_permission(),
which also has a slightly changed behavior and argument list.

	Robert Love


vfs_permission was replaced by generic_permission in 2.6.10-rc.

Signed-Off-By: Robert Love <rml@novell.com>

 inotify.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -u linux/drivers/char/inotify.c linux/drivers/char/inotify.c
--- linux/drivers/char/inotify.c	2004-11-15 15:28:34.951248696 -0500
+++ linux/drivers/char/inotify.c	2004-11-16 14:42:11.929575168 -0500
@@ -163,7 +151,7 @@
 	inode = nd.dentry->d_inode;
 
 	/* you can only watch an inode if you have read permissions on it */
-	error = vfs_permission(inode, MAY_READ);
+	error = generic_permission(inode, MAY_READ, NULL);
 	if (error) {
 		inode = ERR_PTR(error);
 		goto release_and_out;



  reply	other threads:[~2004-11-17 18:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-17 16:57 [patch] inotify: make our sysfs files show up Robert Love
2004-11-17 18:02 ` Robert Love [this message]
2004-11-17 19:08   ` [patch] inotify: vfs_permission was replaced Christoph Hellwig
2004-11-17 19:10     ` Robert Love
2004-11-17 19:18       ` Christoph Hellwig
2004-11-17 19:17         ` Robert Love
2004-11-17 20:09           ` Mike Waychison
2004-11-17 20:17             ` [patch] inotify: use permission not vfs_permission Robert Love
2004-11-17 20:25               ` Mike Waychison
2004-11-17 20:28                 ` Robert Love
2004-11-18  0:59                   ` John McCutchan
2004-11-17 20:19           ` [patch] inotify: vfs_permission was replaced Al Viro
2004-11-17 20:10   ` [patch] inotify: add sysfs store support Robert Love
2004-11-18  1:00     ` John McCutchan
2004-11-18  1:24       ` Robert Love
2004-11-18 19:05 ` [patch] inotify: grab right lock Robert Love

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1100714560.6280.7.camel@betsy.boston.ximian.com \
    --to=rml@novell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ttb@tentacle.dhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®