1. 11 2月, 2010 1 次提交
  2. 24 9月, 2009 1 次提交
  3. 19 6月, 2009 1 次提交
  4. 30 3月, 2009 1 次提交
  5. 19 2月, 2009 1 次提交
    • E
      seq_file: properly cope with pread · 8f19d472
      Eric Biederman 提交于
      Currently seq_read assumes that the offset passed to it is always the
      offset it passed to user space.  In the case pread this assumption is
      broken and we do the wrong thing when presented with pread.
      
      To solve this I introduce an offset cache inside of struct seq_file so we
      know where our logical file position is.  Then in seq_read if we try to
      read from another offset we reset our data structures and attempt to go to
      the offset user space wanted.
      
      [akpm@linux-foundation.org: restore FMODE_PWRITE]
      [pjt@google.com: seq_open needs its fmode opened up to take advantage of this]
      Signed-off-by: NEric Biederman <ebiederm@xmission.com>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Paul Turner <pjt@google.com>
      Cc: <stable@kernel.org>		[2.6.25.x, 2.6.26.x, 2.6.27.x, 2.6.28.x]
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8f19d472
  6. 30 12月, 2008 2 次提交
  7. 23 11月, 2008 1 次提交
  8. 20 10月, 2008 1 次提交
  9. 13 8月, 2008 1 次提交
  10. 30 4月, 2008 1 次提交
  11. 23 4月, 2008 2 次提交
  12. 22 4月, 2008 1 次提交
  13. 02 4月, 2008 1 次提交
  14. 28 3月, 2008 1 次提交
  15. 26 3月, 2008 1 次提交
  16. 15 2月, 2008 1 次提交
  17. 29 1月, 2008 1 次提交
  18. 17 10月, 2007 1 次提交
    • M
      Fix f_version type: should be u64 instead of unsigned long · 2b47c361
      Mathieu Desnoyers 提交于
      Fix f_version type: should be u64 instead of long
      
      There is a type inconsistency between struct inode i_version and struct file
      f_version.
      
      fs.h:
      
      struct inode
        u64                     i_version;
      
      and
      
      struct file
        unsigned long           f_version;
      
      Users do:
      
      fs/ext3/dir.c:
      
      if (filp->f_version != inode->i_version) {
      
      So why isn't f_version a u64 ? It becomes a problem if versions gets
      higher than 2^32 and we are on an architecture where longs are 32 bits.
      
      This patch changes the f_version type to u64, and updates the users accordingly.
      
      It applies to 2.6.23-rc2-mm2.
      Signed-off-by: NMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Martin Bligh <mbligh@google.com>
      Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
      Cc: Al Viro <viro@ftp.linux.org.uk>
      Cc: <linux-ext4@vger.kernel.org>
      Cc: Mark Fasheh <mark.fasheh@oracle.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: "J. Bruce Fields" <bfields@fieldses.org>
      Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2b47c361
  19. 11 10月, 2007 1 次提交
  20. 11 7月, 2007 1 次提交
    • P
      Make common helpers for seq_files that work with list_heads · bcf67e16
      Pavel Emelianov 提交于
      Many places in kernel use seq_file API to iterate over a regular list_head.
      The code for such iteration is identical in all the places, so it's worth
      introducing a common helpers.
      
      This makes code about 300 lines smaller:
      
      The first version of this patch made the helper functions static inline
      in the seq_file.h header. This patch moves them to the fs/seq_file.c as
      Andrew proposed. The vmlinux .text section sizes are as follows:
      
      2.6.22-rc1-mm1:              0x001794d5
      with the previous version:   0x00179505
      with this patch:             0x00179135
      
      The config file used was make allnoconfig with the "y" inclusion of all
      the possible options to make the files modified by the patch compile plus
      drivers I have on the test node.
      
      This patch:
      
      Many places in kernel use seq_file API to iterate over a regular list_head.
      The code for such iteration is identical in all the places, so it's worth
      introducing a common helpers.
      Signed-off-by: NPavel Emelianov <xemul@openvz.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      bcf67e16
  21. 08 12月, 2006 1 次提交
  22. 23 3月, 2006 1 次提交
  23. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4