1. 09 9月, 2009 1 次提交
  2. 24 7月, 2009 1 次提交
  3. 25 6月, 2009 1 次提交
  4. 24 6月, 2009 2 次提交
  5. 17 6月, 2009 1 次提交
  6. 12 6月, 2009 2 次提交
  7. 24 5月, 2009 1 次提交
  8. 07 4月, 2009 1 次提交
  9. 01 4月, 2009 1 次提交
  10. 31 3月, 2009 1 次提交
    • A
      proc 2/2: remove struct proc_dir_entry::owner · 99b76233
      Alexey Dobriyan 提交于
      Setting ->owner as done currently (pde->owner = THIS_MODULE) is racy
      as correctly noted at bug #12454. Someone can lookup entry with NULL
      ->owner, thus not pinning enything, and release it later resulting
      in module refcount underflow.
      
      We can keep ->owner and supply it at registration time like ->proc_fops
      and ->data.
      
      But this leaves ->owner as easy-manipulative field (just one C assignment)
      and somebody will forget to unpin previous/pin current module when
      switching ->owner. ->proc_fops is declared as "const" which should give
      some thoughts.
      
      ->read_proc/->write_proc were just fixed to not require ->owner for
      protection.
      
      rmmod'ed directories will be empty and return "." and ".." -- no harm.
      And directories with tricky enough readdir and lookup shouldn't be modular.
      We definitely don't want such modular code.
      
      Removing ->owner will also make PDE smaller.
      
      So, let's nuke it.
      
      Kudos to Jeff Layton for reminding about this, let's say, oversight.
      
      http://bugzilla.kernel.org/show_bug.cgi?id=12454Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      99b76233
  11. 28 3月, 2009 1 次提交
  12. 26 3月, 2009 1 次提交
  13. 03 2月, 2009 1 次提交
  14. 31 1月, 2009 1 次提交
  15. 28 1月, 2009 1 次提交
  16. 22 1月, 2009 1 次提交
  17. 10 1月, 2009 3 次提交
    • T
      filesystem freeze: add error handling of write_super_lockfs/unlockfs · c4be0c1d
      Takashi Sato 提交于
      Currently, ext3 in mainline Linux doesn't have the freeze feature which
      suspends write requests.  So, we cannot take a backup which keeps the
      filesystem's consistency with the storage device's features (snapshot and
      replication) while it is mounted.
      
      In many case, a commercial filesystem (e.g.  VxFS) has the freeze feature
      and it would be used to get the consistent backup.
      
      If Linux's standard filesystem ext3 has the freeze feature, we can do it
      without a commercial filesystem.
      
      So I have implemented the ioctls of the freeze feature.
      I think we can take the consistent backup with the following steps.
      1. Freeze the filesystem with the freeze ioctl.
      2. Separate the replication volume or create the snapshot
         with the storage device's feature.
      3. Unfreeze the filesystem with the unfreeze ioctl.
      4. Take the backup from the separated replication volume
         or the snapshot.
      
      This patch:
      
      VFS:
      Changed the type of write_super_lockfs and unlockfs from "void"
      to "int" so that they can return an error.
      Rename write_super_lockfs and unlockfs of the super block operation
      freeze_fs and unfreeze_fs to avoid a confusion.
      
      ext3, ext4, xfs, gfs2, jfs:
      Changed the type of write_super_lockfs and unlockfs from "void"
      to "int" so that write_super_lockfs returns an error if needed,
      and unlockfs always returns 0.
      
      reiserfs:
      Changed the type of write_super_lockfs and unlockfs from "void"
      to "int" so that they always return 0 (success) to keep a current behavior.
      Signed-off-by: NTakashi Sato <t-sato@yk.jp.nec.com>
      Signed-off-by: NMasayuki Hamaguchi <m-hamaguchi@ys.jp.nec.com>
      Cc: <xfs-masters@oss.sgi.com>
      Cc: <linux-ext4@vger.kernel.org>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Dave Kleikamp <shaggy@austin.ibm.com>
      Cc: Dave Chinner <david@fromorbit.com>
      Cc: Alasdair G Kergon <agk@redhat.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c4be0c1d
    • D
      jfs: remove xtLookupList() · fec1878f
      Dave Kleikamp 提交于
      xtLookupList() was a more generalized version of xtLookup() with a
      nastier interface.  Its only caller, extHint(), is actually better
      suited to using xtLookup() than xtLookupList().  This also lets us
      remove the definition of lxd_t, an obnoxious packed structure that was
      only used in-memory.
      Signed-off-by: NDave Kleikamp <shaggy@linux.vnet.ibm.com>
      fec1878f
    • D
      jfs: clean up a dangling comment · da9c138e
      Dave Kleikamp 提交于
      viro cleaned up an hlist hack, but left a comment where it no longer
      belongs.  Combine the old comment with his new one.
      Signed-off-by: NDave Kleikamp <shaggy@linux.vnet.ibm.com>
      da9c138e
  18. 06 1月, 2009 1 次提交
  19. 01 1月, 2009 1 次提交
  20. 17 12月, 2008 1 次提交
  21. 14 11月, 2008 1 次提交
  22. 23 10月, 2008 2 次提交
  23. 21 10月, 2008 1 次提交
  24. 14 10月, 2008 1 次提交
  25. 27 7月, 2008 2 次提交
  26. 26 7月, 2008 1 次提交
  27. 11 6月, 2008 1 次提交
  28. 28 5月, 2008 1 次提交
  29. 21 5月, 2008 1 次提交
  30. 13 5月, 2008 2 次提交
  31. 29 4月, 2008 1 次提交
  32. 19 4月, 2008 1 次提交
  33. 06 3月, 2008 1 次提交