diff options
author | Erez Zadok <ezk@cs.sunysb.edu> | 2008-02-07 03:13:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:16 -0500 |
commit | deb21db7788b97a2bccdefe605433ef97f482689 (patch) | |
tree | 9adc35a3f7271c7c328f6b835203150763683ddb /include | |
parent | c9845ff1df5ba007b576c26c4f1e7ca43b7c7e87 (diff) |
VFS: swap do_ioctl and vfs_ioctl names
Rename old vfs_ioctl to do_ioctl, because the comment above it clearly
indicates that it is an internal function not to be exported to modules;
therefore it should have a more traditional do_XXX name. The new do_ioctl
is exported in fs.h but not to modules.
Rename the old do_ioctl to vfs_ioctl because the names vfs_XXX should
preferably be reserved to callable VFS functions which modules may call, as
many other vfs_XXX functions already do. Export the new vfs_ioctl to GPL
modules so others can use it (including Unionfs and eCryptfs). Add DocBook
for new vfs_ioctl.
[akpm@linux-foundation.org: fix build]
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 109734bf6377..2925f7011ece 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1941,7 +1941,9 @@ extern int vfs_stat_fd(int dfd, char __user *, struct kstat *); | |||
1941 | extern int vfs_lstat_fd(int dfd, char __user *, struct kstat *); | 1941 | extern int vfs_lstat_fd(int dfd, char __user *, struct kstat *); |
1942 | extern int vfs_fstat(unsigned int, struct kstat *); | 1942 | extern int vfs_fstat(unsigned int, struct kstat *); |
1943 | 1943 | ||
1944 | extern int vfs_ioctl(struct file *, unsigned int, unsigned int, unsigned long); | 1944 | extern long vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); |
1945 | extern int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, | ||
1946 | unsigned long arg); | ||
1945 | 1947 | ||
1946 | extern void get_filesystem(struct file_system_type *fs); | 1948 | extern void get_filesystem(struct file_system_type *fs); |
1947 | extern void put_filesystem(struct file_system_type *fs); | 1949 | extern void put_filesystem(struct file_system_type *fs); |