1. 04 2月, 2007 10 次提交
  2. 02 2月, 2007 2 次提交
  3. 31 1月, 2007 9 次提交
  4. 30 1月, 2007 1 次提交
  5. 27 1月, 2007 15 次提交
  6. 25 1月, 2007 1 次提交
  7. 23 1月, 2007 2 次提交
    • V
      [PATCH] resierfs: avoid tail packing if an inode was ever mmapped · de14569f
      Vladimir Saveliev 提交于
      This patch fixes a confusion reiserfs has for a long time.
      
      On release file operation reiserfs used to try to pack file data stored in
      last incomplete page of some files into metadata blocks.  After packing the
      page got cleared with clear_page_dirty.  It did not take into account that
      the page may be mmaped into other process's address space.  Recent
      replacement for clear_page_dirty cancel_dirty_page found the confusion with
      sanity check that page has to be not mapped.
      
      The patch fixes the confusion by making reiserfs avoid tail packing if an
      inode was ever mmapped.  reiserfs_mmap and reiserfs_file_release are
      serialized with mutex in reiserfs specific inode.  reiserfs_mmap locks the
      mutex and sets a bit in reiserfs specific inode flags.
      reiserfs_file_release checks the bit having the mutex locked.  If bit is
      set - tail packing is avoided.  This eliminates a possibility that mmapped
      page gets cancel_page_dirty-ed.
      Signed-off-by: NVladimir Saveliev <vs@namesys.com>
      Cc: Jeff Mahoney <jeffm@suse.com>
      Cc: Chris Mason <mason@suse.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      de14569f
    • C
      [PATCH] fix blk_direct_IO bio preparation · cda9205d
      Chen, Kenneth W 提交于
      For large size DIO that needs multiple bio, one full page worth of data was
      lost at the boundary of bio's maximum sector or segment limits.  After a
      bio is full and got submitted.  The outer while (nbytes) { ...  } loop will
      allocate a new bio and just march on to index into next page.  It just
      forgets about the page that bio_add_page() rejected when previous bio is
      full.  Fix it by put the rejected page back to pvec so we pick it up again
      for the next bio.
      Signed-off-by: NKen Chen <kenneth.w.chen@intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cda9205d