1. 16 8月, 2006 1 次提交
  2. 29 6月, 2006 1 次提交
    • K
      [JFFS2][XATTR] Fix xd->refcnt race condition · c6e8c6cc
      KaiGai Kohei 提交于
      When xd->refcnt is checked whether this xdatum should be released
      or not, atomic_dec_and_lock() is used to ensure holding the
      c->erase_completion_lock.
      
      This fix change a specification of delete_xattr_datum().
      Previously, it's only called when xd->refcnt equals zero.
      (calling it with positive xd->refcnt cause a BUG())
      If you applied this patch, the function checks whether
      xd->refcnt is zero or not under the spinlock if necessary.
      Then, it marks xd DEAD flahs and links with xattr_dead_list
      or releases it immediately when xd->refcnt become zero.
      Signed-off-by: NKaiGai Kohei <kaigai@ak.jp.nec.com>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      c6e8c6cc
  3. 27 6月, 2006 3 次提交
  4. 25 5月, 2006 1 次提交
  5. 24 5月, 2006 1 次提交
    • D
      [JFFS2] Reduce visibility of raw_node_ref to upper layers of JFFS2 code. · 2f785402
      David Woodhouse 提交于
      As the first step towards eliminating the ref->next_phys member and saving
      memory by using an _array_ of struct jffs2_raw_node_ref per eraseblock,
      stop the write functions from allocating their own refs; have them just
      _reserve_ the appropriate number instead. Then jffs2_link_node_ref() can
      just fill them in.
      
      Use a linked list of pre-allocated refs in the superblock, for now. Once
      we switch to an array, it'll just be a case of extending that array.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      2f785402
  6. 23 5月, 2006 1 次提交
  7. 22 5月, 2006 1 次提交
  8. 21 5月, 2006 1 次提交
  9. 13 5月, 2006 5 次提交