1. 10 7月, 2007 1 次提交
  2. 05 7月, 2007 1 次提交
  3. 04 7月, 2007 3 次提交
    • D
      [JFFS2] Fix readinode failure when read_dnode() detects CRC failure. · e2baf4ed
      David Woodhouse 提交于
      We should have stopped returning 1 from read_dnode() to indicate
      failure. We can just mark the damn thing obsolete immediately. But I
      missed a case where we don't.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      e2baf4ed
    • Z
      dio: remove bogus refcounting BUG_ON · fcb82f88
      Zach Brown 提交于
      Badari Pulavarty reported a case of this BUG_ON is triggering during
      testing.  It's completely bogus and should be removed.
      
      It's trying to notice if we left references to the dio hanging around in
      the sync case.  They should have been dropped as IO completed while this
      path was in dio_await_completion().  This condition will also be
      checked, via some twisty logic, by the BUG_ON(ret != -EIOCBQUEUED) a few
      lines lower.  So to start this BUG_ON() is redundant.
      
      More fatally, it's dereferencing dio-> after having dropped its
      reference.  It's only safe to dereference the dio after releasing the
      lock if the final reference was just dropped.  Another CPU might free
      the dio in bio completion and reuse the memory after this path drops the
      dio lock but before the BUG_ON() is evaluated.
      
      This patch passed aio+dio regression unit tests and aio-stress on ext3.
      Signed-off-by: NZach Brown <zach.brown@oracle.com>
      Cc: Badari Pulavarty <pbadari@us.ibm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      fcb82f88
    • D
      [JFFS2] Fix readinode failure when read_dnode() detects CRC failure. · 14c6381e
      David Woodhouse 提交于
      We should have stopped returning 1 from read_dnode() to indicate
      failure. We can just mark the damn thing obsolete immediately. But I
      missed a case where we don't.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      14c6381e
  4. 29 6月, 2007 13 次提交
  5. 24 6月, 2007 3 次提交
  6. 19 6月, 2007 1 次提交
  7. 17 6月, 2007 3 次提交
    • E
      shm: fix the filename of hugetlb sysv shared memory · 9d66586f
      Eric W. Biederman 提交于
      Some user space tools need to identify SYSV shared memory when examining
      /proc/<pid>/maps.  To do so they look for a block device with major zero, a
      dentry named SYSV<sysv key>, and having the minor of the internal sysv
      shared memory kernel mount.
      
      To help these tools and to make it easier for people just browsing
      /proc/<pid>/maps this patch modifies hugetlb sysv shared memory to use the
      SYSV<key> dentry naming convention.
      
      User space tools will still have to be aware that hugetlb sysv shared
      memory lives on a different internal kernel mount and so has a different
      block device minor number from the rest of sysv shared memory.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Cc: "Serge E. Hallyn" <serge@hallyn.com>
      Cc: Albert Cahalan <acahalan@gmail.com>
      Cc: Badari Pulavarty <pbadari@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9d66586f
    • J
      udf: fix possible leakage of blocks · 74584ae5
      Jan Kara 提交于
      We have to take care that when we call udf_discard_prealloc() from
      udf_clear_inode() we have to write inode ourselves afterwards (otherwise,
      some changes might be lost leading to leakage of blocks, use of free blocks
      or improperly aligned extents).
      
      Also udf_discard_prealloc() does two different things - it removes
      preallocated blocks and truncates the last extent to exactly match i_size.
      We move the latter functionality to udf_truncate_tail_extent(), call
      udf_discard_prealloc() when last reference to a file is dropped and call
      udf_truncate_tail_extent() when inode is being removed from inode cache
      (udf_clear_inode() call).
      
      We cannot call udf_truncate_tail_extent() earlier as subsequent open+write
      would find the last block of the file mapped and happily write to the end
      of it, although the last extent says it's shorter.
      
      [akpm@linux-foundation.org: Make checkpatch.pl happier]
      Signed-off-by: NJan Kara <jack@suse.cz>
      Cc: Eric Sandeen <sandeen@sandeen.net>
      Cc: Cyrill Gorcunov <gorcunov@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      74584ae5
    • A
      fuse: ->fs_flags fixlet · edad01e2
      Alexey Dobriyan 提交于
      fs/fuse/inode.c:658:3: error: Initializer entry defined twice
      fs/fuse/inode.c:661:3:   also defined here
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Acked-by: NMiklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      edad01e2
  8. 15 6月, 2007 3 次提交
  9. 13 6月, 2007 3 次提交
  10. 09 6月, 2007 1 次提交
  11. 08 6月, 2007 7 次提交
  12. 07 6月, 2007 1 次提交
    • M
      ocfs2: Fix invalid assertion during write on 64k pages · eeb47d12
      Mark Fasheh 提交于
      The write path code intends to bug if a math error (or unhandled case)
      results in a write outside of the current cluster boundaries. The actual
      BUG_ON() statements however are incorrect, leading to a crash on kernels
      with 64k page size. Fix those by checking against the right variables.
      
      Also, move the assertions higher up within the functions so that they trip
      *before* the code starts to mark buffers.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      eeb47d12