1. 10 Jan, 2011 2 commits
    • Lukas Czerner's avatar
      ext4: remove warning message from ext4_issue_discard helper · 93259636
      Lukas Czerner authored
      ext4_issue_discard is supposed to be helper for calling discard, however
      in case that underlying device does not support discard it prints out
      the warning message and clears the DISCARD t_mount_opt flag. Since it
      can be (and is) used by others, it should not do anything and let the
      caller to handle the error case.
      
      This commit removes warning message and flag setting from
      ext4_issue_discard and use it just in place where it is really needed
      (release_blocks_on_commit). FITRIM ioctl should not set any flags nor it
      should print out warning messages, so get rid of the warning as well.
      Signed-off-by: default avatarLukas Czerner <lczerner@redhat.com>
      93259636
    • Lukas Czerner's avatar
      ext4: fix possible overflow in ext4_trim_fs() · 4f531501
      Lukas Czerner authored
      When determining last group through ext4_get_group_no_and_offset() the
      result may be wrong in cases when range->start and range-len are too
      big, because it may overflow when summing up those two numbers.
      
      Fix that by checking range->len and limit its value to
      ext4_blocks_count(). This commit was tested by myself with expected
      result.
      Signed-off-by: default avatarLukas Czerner <lczerner@redhat.com>
      4f531501
  2. 20 Dec, 2010 7 commits
  3. 18 Dec, 2010 5 commits
  4. 17 Dec, 2010 2 commits
  5. 16 Dec, 2010 6 commits
  6. 15 Dec, 2010 16 commits
  7. 14 Dec, 2010 2 commits