[PATCH] 0/3 fs/ioctl.c coding style, rename vfs_ioctl/do_ioctl

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <hch@...>, <viro@...>, <akpm@...>
Cc: <linux-kernel@...>, <linux-fsdevel@...>
Date: Saturday, October 27, 2007 - 7:10 pm

This series of three proposed patches changes fs/ioctl.c and Unionfs as
follows.  This series is against v2.6.24-rc1-192-gef49c32.

Patch 1: just applies coding standards to fs/ioctl.c (while I'm at it, I
figured it's worth cleaning VFS files one at a time).

Patch 2: does two things:

(a) Renames the old vfs_ioctl to do_ioctl, because the comment above the old
    vfs_ioctl clearly indicates that it is an internal function not to be
    exported to modules; therefore it should have a more traditional do_XXX
    "internal function" name.  The new do_ioctl is exported in fs.h but not
    to modules.

(b) Renames the old (static) do_ioctl to vfs_ioctl because the names vfs_XXX
    should preferably be reserved to callable VFS functions which modules
    may call, as other vfs_XXX functions already do.  Export the new
    vfs_ioctl to modules so others can use it (including Unionfs and
    eCryptfs).

Patch 3: demonstrates how Unionfs can use the new vfs_ioctl.  I successfully
tested unionfs with this new exported vfs_ioctl.  (eCryptfs could do the
same.)

I'd like to propose that the first two patches be merged in -mm and even
mainline, pending review.

Erez Zadok (3):
      VFS: apply coding standards to fs/ioctl.c
      VFS: swap do_ioctl and vfs_ioctl names
      Unionfs: use vfs_ioctl

 fs/compat_ioctl.c       |    2 
 fs/ioctl.c              |  176 ++++++++++++++++++++++++------------------------
 fs/unionfs/commonfops.c |   22 +-----
 include/linux/fs.h      |    3 

Cheers,
Erez.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] 0/3 fs/ioctl.c coding style, rename vfs_ioctl/do_ioctl, Erez Zadok, (Sat Oct 27, 7:10 pm)
[PATCH 2/3] VFS: swap do_ioctl and vfs_ioctl names, Erez Zadok, (Sat Oct 27, 7:10 pm)
Re: [PATCH 2/3] VFS: swap do_ioctl and vfs_ioctl names, Christoph Hellwig, (Sun Oct 28, 10:14 am)
Re: [PATCH 1/3] VFS: apply coding standards to fs/ioctl.c, Christoph Hellwig, (Sun Oct 28, 10:12 am)
Re: [PATCH 1/3] VFS: apply coding standards to fs/ioctl.c, Daniel Phillips, (Sun Oct 28, 10:57 pm)
Re: [PATCH 1/3] VFS: apply coding standards to fs/ioctl.c, Christoph Hellwig, (Tue Oct 30, 5:55 am)
Re: [PATCH 1/3] VFS: apply coding standards to fs/ioctl.c, Christoph Hellwig, (Tue Oct 30, 5:54 am)
[PATCH 3/3] Unionfs: use vfs_ioctl, Erez Zadok, (Sat Oct 27, 7:10 pm)