1. 18 3月, 2017 1 次提交
    • L
      Btrfs: fix regression in lock_delalloc_pages · 49d4a334
      Liu Bo 提交于
      The bug is a regression after commit
      (da2c7009 "btrfs: teach __process_pages_contig about PAGE_LOCK operation")
      and commit
      (76c0021d "Btrfs: use helper to simplify lock/unlock pages").
      
      So if the dirty pages which are under writeback got truncated partially
      before we lock the dirty pages, we couldn't find all pages mapping to the
      delalloc range, and the bug didn't return an error so it kept going on and
      found that the delalloc range got truncated and got to unlock the dirty
      pages, and then the ASSERT could caught the error, and showed
      
      -----------------------------------------------------------------------------
      assertion failed: page_ops & PAGE_LOCK, file: fs/btrfs/extent_io.c, line: 1716
      -----------------------------------------------------------------------------
      
      This fixes the bug by returning the proper -EAGAIN.
      
      Cc: David Sterba <dsterba@suse.com>
      Reported-by: NDave Jones <davej@codemonkey.org.uk>
      Signed-off-by: NLiu Bo <bo.li.liu@oracle.com>
      Signed-off-by: NDavid Sterba <dsterba@suse.com>
      49d4a334
  2. 28 2月, 2017 10 次提交
  3. 17 2月, 2017 7 次提交
  4. 14 2月, 2017 6 次提交
  5. 06 12月, 2016 4 次提交
  6. 30 11月, 2016 4 次提交
  7. 29 11月, 2016 1 次提交
  8. 01 11月, 2016 1 次提交
  9. 25 10月, 2016 1 次提交
  10. 04 10月, 2016 1 次提交
  11. 27 9月, 2016 4 次提交