1. 02 6月, 2009 1 次提交
  2. 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
  3. 25 5月, 2009 1 次提交
  4. 06 5月, 2009 1 次提交
  5. 28 3月, 2009 1 次提交
  6. 26 3月, 2009 1 次提交
  7. 21 3月, 2009 1 次提交
    • H
      UBIFS: fix compiler warnings · fcabb347
      Hunter Adrian 提交于
      fs/ubifs/super.c: In function ‘ubifs_show_options’:
      fs/ubifs/super.c:425: warning: format not a string literal and no format arguments
      fs/ubifs/super.c: In function ‘mount_ubifs’:
      fs/ubifs/super.c:1204: warning: format not a string literal and no format arguments
      fs/ubifs/super.c: In function ‘ubifs_remount_rw’:
      fs/ubifs/super.c:1557: warning: format not a string literal and no format arguments
      Signed-off-by: NAdrian Hunter <adrian.hunter@nokia.com>
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      fcabb347
  8. 16 3月, 2009 1 次提交
  9. 15 3月, 2009 1 次提交
  10. 29 1月, 2009 4 次提交
  11. 27 1月, 2009 1 次提交
    • A
      UBIFS: fix assertions · 6ba87c9b
      Artem Bityutskiy 提交于
      I introduce wrong assertions in one of the previous commits, this
      patch fixes them.
      
      Also, initialize debugfs after the debugging check. This is a little
      nicer because we want the FS data to be accessible to external users
      after everything has been initialized.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      6ba87c9b
  12. 26 1月, 2009 4 次提交
  13. 20 1月, 2009 1 次提交
  14. 18 1月, 2009 2 次提交
  15. 07 1月, 2009 1 次提交
  16. 31 12月, 2008 7 次提交
  17. 23 12月, 2008 2 次提交
  18. 03 12月, 2008 4 次提交
  19. 22 11月, 2008 3 次提交
    • A
      UBIFS: pre-allocate bulk-read buffer · 3477d204
      Artem Bityutskiy 提交于
      To avoid memory allocation failure during bulk-read, pre-allocate
      a bulk-read buffer, so that if there is only one bulk-reader at
      a time, it would just use the pre-allocated buffer and would not
      do any memory allocation. However, if there are more than 1 bulk-
      reader, then only one reader would use the pre-allocated buffer,
      while the other reader would allocate the buffer for itself.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      3477d204
    • A
      UBIFS: do not allocate too much · 6c0c42cd
      Artem Bityutskiy 提交于
      Bulk-read allocates 128KiB or more using kmalloc. The allocation
      starts failing often when the memory gets fragmented. UBIFS still
      works fine in this case, because it falls-back to standard
      (non-optimized) read method, though. This patch teaches bulk-read
      to allocate exactly the amount of memory it needs, instead of
      allocating 128KiB every time.
      
      This patch is also a preparation to the further fix where we'll
      have a pre-allocated bulk-read buffer as well. For example, now
      the @bu object is prepared in 'ubifs_bulk_read()', so we could
      path either pre-allocated or allocated information to
      'ubifs_do_bulk_read()' later. Or teaching 'ubifs_do_bulk_read()'
      not to allocate 'bu->buf' if it is already there.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      6c0c42cd
    • A
      UBIFS: do not print scary memory allocation warnings · 39ce81ce
      Artem Bityutskiy 提交于
      Bulk-read allocates a lot of memory with 'kmalloc()', and when it
      is/gets fragmented 'kmalloc()' fails with a scarry warning. But
      because bulk-read is just an optimization, UBIFS keeps working fine.
      Supress the warning by passing __GFP_NOWARN option to 'kmalloc()'.
      
      This patch also introduces a macro for the magic 128KiB constant.
      This is just neater.
      
      Note, this is not really fixes the problem we had, but just hides
      the warnings. The further patches fix the problem.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      39ce81ce
  20. 19 10月, 2008 1 次提交
  21. 14 10月, 2008 1 次提交