1. 09 Sep, 2008 1 commit
    • Aneesh Kumar K.V's avatar
      ext4: Fix ext4 nomballoc allocator for ENOSPC · 68629f29
      Aneesh Kumar K.V authored
      We run into ENOSPC error on nonmballoc ext4, even when there is free blocks
      on the filesystem.
      
      The patch includes two changes:
      
      a) Set reservation to NULL if we trying to allocate near group_target_block
      from the goal group if the free block in the group is less than windows.
      This should give us a better chance to allocate near group_target_block.
      This also ensures that if we are not allocating near group_target_block
      then we don't trun off reservation. This should enable us to allocate
      with reservation from other groups that have large free blocks count.
      
      b) we don't need to check the window size if the block reservation is off.
      Signed-off-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
      Signed-off-by: default avatarMingming Cao <cmm@us.ibm.com>
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      68629f29
  2. 09 Oct, 2008 2 commits
  3. 10 Oct, 2008 1 commit
  4. 09 Sep, 2008 1 commit
  5. 09 Oct, 2008 1 commit
    • Aneesh Kumar K.V's avatar
      ext4: Make sure all the block allocation paths reserve blocks · a30d542a
      Aneesh Kumar K.V authored
      With delayed allocation we need to make sure block are reserved before
      we attempt to allocate them. Otherwise we get block allocation failure
      (ENOSPC) during writepages which cannot be handled. This would mean
      silent data loss (We do a printk stating data will be lost). This patch
      updates the DIO and fallocate code path to do block reservation before
      block allocation. This is needed to make sure parallel DIO and fallocate
      request doesn't take block out of delayed reserve space.
      
      When free blocks count go below a threshold we switch to a slow patch
      which looks at other CPU's accumulated percpu counter values.
      Signed-off-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      a30d542a
  6. 20 Aug, 2008 1 commit
  7. 09 Sep, 2008 3 commits
  8. 09 Oct, 2008 13 commits
  9. 08 Oct, 2008 3 commits
  10. 07 Oct, 2008 7 commits
  11. 06 Oct, 2008 7 commits