1. 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
  2. 19 5月, 2008 1 次提交
  3. 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
  4. 24 4月, 2008 5 次提交
  5. 19 4月, 2008 1 次提交
  6. 15 2月, 2008 2 次提交
  7. 02 2月, 2008 12 次提交
  8. 10 10月, 2007 8 次提交
  9. 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
  10. 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
  11. 18 7月, 2007 3 次提交
  12. 11 7月, 2007 1 次提交
  13. 10 5月, 2007 1 次提交
  14. 07 5月, 2007 1 次提交
    • M
      nfsd4: Convert NFSv4 to new lock interface · fd85b817
      Marc Eshel 提交于
      Convert NFSv4 to the new lock interface.  We don't define any callback for now,
      so we're not taking advantage of the asynchronous feature--that's less critical
      for the multi-threaded nfsd then it is for the single-threaded lockd.  But this
      does allow a cluster filesystems to export cluster-coherent locking to NFS.
      
      Note that it's cluster filesystems that are the issue--of the filesystems that
      define lock methods (nfs, cifs, etc.), most are not exportable by nfsd.
      Signed-off-by: NMarc Eshel <eshel@almaden.ibm.com>
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      fd85b817