1. 12 4月, 2015 3 次提交
  2. 26 3月, 2015 1 次提交
  3. 13 3月, 2015 1 次提交
  4. 05 2月, 2015 2 次提交
  5. 28 1月, 2015 1 次提交
    • J
      udf: Release preallocation on last writeable close · b07ef352
      Jan Kara 提交于
      Commit 6fb1ca92 "udf: Fix race between write(2) and close(2)"
      changed the condition when preallocation is released. The idea was that
      we don't want to release the preallocation for an inode on close when
      there are other writeable file descriptors for the inode. However the
      condition was written in the opposite way so we released preallocation
      only if there were other writeable file descriptors. Fix the problem by
      changing the condition properly.
      
      CC: stable@vger.kernel.org
      Fixes: 6fb1ca92Reported-by: NFabian Frederick <fabf@skynet.be>
      Signed-off-by: NJan Kara <jack@suse.cz>
      b07ef352
  6. 12 1月, 2015 1 次提交
  7. 07 1月, 2015 2 次提交
  8. 05 1月, 2015 1 次提交
  9. 22 12月, 2014 2 次提交
  10. 19 12月, 2014 3 次提交
  11. 20 11月, 2014 2 次提交
  12. 09 10月, 2014 1 次提交
    • J
      udf: Fix loading of special inodes · 6174c2eb
      Jan Kara 提交于
      Some UDF media have special inodes (like VAT or metadata partition
      inodes) whose link_count is 0. Thus commit 4071b913 (udf: Properly
      detect stale inodes) broke loading these inodes because udf_iget()
      started returning -ESTALE for them. Since we still need to properly
      detect stale inodes queried by NFS, create two variants of udf_iget() -
      one which is used for looking up special inodes (which ignores
      link_count == 0) and one which is used for other cases which return
      ESTALE when link_count == 0.
      
      Fixes: 4071b913
      CC: stable@vger.kernel.org
      Signed-off-by: NJan Kara <jack@suse.cz>
      6174c2eb
  13. 29 9月, 2014 1 次提交
  14. 17 9月, 2014 1 次提交
    • J
      udf: Fix race between write(2) and close(2) · 6fb1ca92
      Jan Kara 提交于
      Currently write(2) updating i_size and close(2) of the file can race in
      such a way that udf_truncate_tail_extent() called from
      udf_file_release() sees old i_size but already new extents added by the
      running write call. This results in complaints like:
        UDF-fs: warning (device vdb2): udf_truncate_tail_extent: Too long extent
          after EOF in inode 877: i_size: 0 lbcount: 1073739776 extent 0+1073739776
        UDF-fs: error (device vdb2): udf_truncate_tail_extent: Extent after EOF
          in inode 877
      
      Fix the problem by grabbing i_mutex in udf_file_release() to be sure
      i_size is consistent with current state of extent list. Also avoid
      truncating tail extent unnecessarily when the file is still open for
      writing.
      Signed-off-by: NJan Kara <jack@suse.cz>
      6fb1ca92
  15. 05 9月, 2014 6 次提交
  16. 04 9月, 2014 3 次提交
  17. 20 8月, 2014 1 次提交
  18. 16 7月, 2014 3 次提交
  19. 07 5月, 2014 5 次提交