1. 08 7月, 2008 1 次提交
  2. 24 6月, 2008 2 次提交
    • M
      nfsd: rename MAY_ flags · 8837abca
      Miklos Szeredi 提交于
      Rename nfsd_permission() specific MAY_* flags to NFSD_MAY_* to make it
      clear, that these are not used outside nfsd, and to avoid name and
      number space conflicts with the VFS.
      
      [comment from hch: rename MAY_READ, MAY_WRITE and MAY_EXEC as well]
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      8837abca
    • J
      knfsd: clean up nfsd filesystem interfaces · 3dd98a3b
      Jeff Layton 提交于
      Several of the nfsd filesystem interfaces allow changes to parameters
      that don't have any effect on a running nfsd service. They are only ever
      checked when nfsd is started. This patch fixes it so that changes to
      those procfiles return -EBUSY if nfsd is already running to make it
      clear that changes on the fly don't work.
      
      The patch should also close some relatively harmless races between
      changing the info in those interfaces and starting nfsd, since these
      variables are being moved under the protection of the nfsd_mutex.
      
      Finally, the nfsv4recoverydir file always returns -EINVAL if read. This
      patch fixes it to return the recoverydir path as expected.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      3dd98a3b
  3. 19 5月, 2008 1 次提交
  4. 26 4月, 2008 1 次提交
    • J
      locks: don't call ->copy_lock methods on return of conflicting locks · 1a747ee0
      J. Bruce Fields 提交于
      The file_lock structure is used both as a heavy-weight representation of
      an active lock, with pointers to reference-counted structures, etc., and
      as a simple container for parameters that describe a file lock.
      
      The conflicting lock returned from __posix_lock_file is an example of
      the latter; so don't call the filesystem or lock manager callbacks when
      copying to it.  This also saves the need for an unnecessary
      locks_init_lock in the nfsv4 server.
      
      Thanks to Trond for pointing out the error.
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      1a747ee0
  5. 24 4月, 2008 5 次提交
  6. 19 4月, 2008 1 次提交
  7. 15 2月, 2008 2 次提交
  8. 02 2月, 2008 12 次提交
  9. 10 10月, 2007 8 次提交
  10. 20 7月, 2007 1 次提交
    • P
      mm: Remove slab destructors from kmem_cache_create(). · 20c2df83
      Paul Mundt 提交于
      Slab destructors were no longer supported after Christoph's
      c59def9f change. They've been
      BUGs for both slab and slub, and slob never supported them
      either.
      
      This rips out support for the dtor pointer from kmem_cache_create()
      completely and fixes up every single callsite in the kernel (there were
      about 224, not including the slab allocator definitions themselves,
      or the documentation references).
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      20c2df83
  11. 19 7月, 2007 1 次提交
    • J
      locks: rename lease functions to reflect locks.c conventions · a9933cea
      J. Bruce Fields 提交于
      We've been using the convention that vfs_foo is the function that calls
      a filesystem-specific foo method if it exists, or falls back on a
      generic method if it doesn't; thus vfs_foo is what is called when some
      other part of the kernel (normally lockd or nfsd) wants to get a lock,
      whereas foo is what filesystems call to use the underlying local
      functionality as part of their lock implementation.
      
      So rename setlease to vfs_setlease (which will call a
      filesystem-specific setlease after a later patch) and __setlease to
      setlease.
      
      Also, vfs_setlease need only be GPL-exported as long as it's only needed
      by lockd and nfsd.
      Signed-off-by: N"J. Bruce Fields" <bfields@citi.umich.edu>
      a9933cea
  12. 18 7月, 2007 3 次提交
  13. 11 7月, 2007 1 次提交
  14. 10 5月, 2007 1 次提交