LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [2.6 patch] make vfs_ioctl() static
@ 2008-02-17 8:18 Adrian Bunk
2008-02-17 13:18 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2008-02-17 8:18 UTC (permalink / raw)
To: viro; +Cc: linux-fsdevel, linux-kernel
This patch makes the needlessly global vfs_ioctl() static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
fs/ioctl.c | 4 ++--
include/linux/fs.h | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
18bc247a745a825238208f88fbe1b86ba1ef304e diff --git a/fs/ioctl.c b/fs/ioctl.c
index f32fbde..7db32b3 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -28,8 +28,8 @@
*
* Returns 0 on success, -errno on error.
*/
-long vfs_ioctl(struct file *filp, unsigned int cmd,
- unsigned long arg)
+static long vfs_ioctl(struct file *filp, unsigned int cmd,
+ unsigned long arg)
{
int error = -ENOTTY;
diff --git a/include/linux/fs.h b/include/linux/fs.h
index b84b848..23528b8 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1919,7 +1919,6 @@ extern int vfs_stat_fd(int dfd, char __user *, struct kstat *);
extern int vfs_lstat_fd(int dfd, char __user *, struct kstat *);
extern int vfs_fstat(unsigned int, struct kstat *);
-extern long vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
extern int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd,
unsigned long arg);
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [2.6 patch] make vfs_ioctl() static
2008-02-17 8:18 [2.6 patch] make vfs_ioctl() static Adrian Bunk
@ 2008-02-17 13:18 ` Christoph Hellwig
2008-02-17 20:22 ` Erez Zadok
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2008-02-17 13:18 UTC (permalink / raw)
To: Adrian Bunk; +Cc: viro, linux-fsdevel, linux-kernel
On Sun, Feb 17, 2008 at 10:18:42AM +0200, Adrian Bunk wrote:
> This patch makes the needlessly global vfs_ioctl() static.
I think the point was toa eventually export it for stackable filesystem
use. But until they start using it marking it static seems fine with
me.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.6 patch] make vfs_ioctl() static
2008-02-17 13:18 ` Christoph Hellwig
@ 2008-02-17 20:22 ` Erez Zadok
0 siblings, 0 replies; 3+ messages in thread
From: Erez Zadok @ 2008-02-17 20:22 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Adrian Bunk, viro, linux-fsdevel, linux-kernel
In message <20080217131839.GA11034@infradead.org>, Christoph Hellwig writes:
> On Sun, Feb 17, 2008 at 10:18:42AM +0200, Adrian Bunk wrote:
> > This patch makes the needlessly global vfs_ioctl() static.
>
> I think the point was toa eventually export it for stackable filesystem
> use. But until they start using it marking it static seems fine with
> me.
Right. I'm not using it yet in unionfs, although I could; for now I'm just
calling very similar code myself. This is only used in unionfs after I
process my own ioctls; IOW, I pass all unknown ioctls to the lower level and
let it handle it.
eCryptfs, however, doesn't pass unknown ioctls to the lower layer: it only
processes its own.
Honestly I'm not sure which is more appropriate: should a stackable f/s pass
unknown ioctls to the lower f/s or not? If it doesn't, would any important
functionality be lost?
Erez.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-17 20:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-17 8:18 [2.6 patch] make vfs_ioctl() static Adrian Bunk
2008-02-17 13:18 ` Christoph Hellwig
2008-02-17 20:22 ` Erez Zadok
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).