1. 24 7月, 2009 4 次提交
  2. 13 7月, 2009 1 次提交
  3. 09 7月, 2009 4 次提交
  4. 05 7月, 2009 9 次提交
  5. 24 6月, 2009 1 次提交
  6. 16 6月, 2009 1 次提交
  7. 12 6月, 2009 3 次提交
  8. 08 6月, 2009 2 次提交
  9. 02 6月, 2009 1 次提交
  10. 29 5月, 2009 1 次提交
    • A
      UBIFS: remove dead code · 428ff9d2
      Artem Bityutskiy 提交于
      UBIFS assumes that @c->min_io_size is 8 in case of NOR flash. This
      is because UBIFS alignes all nodes to 8-byte boundary, and maintaining
      @c->min_io_size introduced unnecessary complications.
      
      This patch removes senseless constructs like:
      
      if (c->min_io_size == 1)
      	NOR-specific code
      
      Also, few commentaries amendments.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      428ff9d2
  11. 26 5月, 2009 1 次提交
    • A
      UBIFS: use anonymous device · 7c83f5cb
      Artem Bityutskiy 提交于
      UBIFS has erroneuosly set 'sb->s_dev' to the UBI volume
      character device major/minor. This may lead to clashes
      if there is another FS mounted to a block device with
      the same major/minor numbers. User-space programs which
      use 'stat->st_dev' may get confused because of this.
      
      This problem was found by Al Viro. He also pointed the
      way to fix the problem - use 'set_anon_super()' and
      'kill_anon_super()' VFS helpers.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      7c83f5cb
  12. 25 5月, 2009 1 次提交
  13. 19 5月, 2009 1 次提交
    • H
      UBIFS: return error if link and unlink race · 8b3884a8
      Hunter Adrian 提交于
      Consider a scenario when 'vfs_link(dirA/fileA)' and
      'vfs_unlink(dirA/fileA, dirB/fileB)' race. 'vfs_link()' does not
      lock 'dirA->i_mutex', so this is possible. Both of the functions
      lock 'fileA->i_mutex' though. Suppose 'vfs_unlink()' wins, and takes
      'fileA->i_mutex' mutex first. Suppose 'fileA->i_nlink' is 1. In this
      case 'ubifs_unlink()' will drop the last reference, and put 'inodeA'
      to the list of orphans. After this, 'vfs_link()' will link
      'dirB/fileB' to 'inodeA'. Thir is a problem because, for example,
      the subsequent 'vfs_unlink(dirB/fileB)' will add the same inode
      to the list of orphans.
      
      This problem was reported by J. R. Okajima <hooanon05@yahoo.co.jp>
      
      [Artem: add more comments, amended commit message]
      Signed-off-by: NAdrian Hunter <adrian.hunter@nokia.com>
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      8b3884a8
  14. 09 5月, 2009 1 次提交
  15. 06 5月, 2009 1 次提交
  16. 01 4月, 2009 1 次提交
    • N
      mm: page_mkwrite change prototype to match fault · c2ec175c
      Nick Piggin 提交于
      Change the page_mkwrite prototype to take a struct vm_fault, and return
      VM_FAULT_xxx flags.  There should be no functional change.
      
      This makes it possible to return much more detailed error information to
      the VM (and also can provide more information eg.  virtual_address to the
      driver, which might be important in some special cases).
      
      This is required for a subsequent fix.  And will also make it easier to
      merge page_mkwrite() with fault() in future.
      Signed-off-by: NNick Piggin <npiggin@suse.de>
      Cc: Chris Mason <chris.mason@oracle.com>
      Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
      Cc: Miklos Szeredi <miklos@szeredi.hu>
      Cc: Steven Whitehouse <swhiteho@redhat.com>
      Cc: Mark Fasheh <mfasheh@suse.com>
      Cc: Joel Becker <joel.becker@oracle.com>
      Cc: Artem Bityutskiy <dedekind@infradead.org>
      Cc: Felix Blyakher <felixb@sgi.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c2ec175c
  17. 31 3月, 2009 1 次提交
    • A
      UBIFS: fix recovery bug · de097578
      Adrian Hunter 提交于
      UBIFS did not recovery in a situation in which it could
      have. The relevant function assumed there could not be
      more nodes in an eraseblock after a corrupted node, but
      in fact the last (NAND) page written might contain anything.
      The correct approach is to check for empty space (0xFF bytes)
      from then on.
      Signed-off-by: NAdrian Hunter <adrian.hunter@nokia.com>
      de097578
  18. 30 3月, 2009 1 次提交
  19. 28 3月, 2009 1 次提交
  20. 26 3月, 2009 1 次提交
  21. 21 3月, 2009 3 次提交