1. 10 7月, 2012 4 次提交
    • H
      ext4: fix out-of-date comments in extents.c · e7bcf823
      HaiboLiu 提交于
      In this patch, ext4_ext_try_to_merge has been change to merge 
      an extent both left and right.  So we need to update the comment
      in here.
      Signed-off-by: NHaiboLiu <HaiboLiu6@gmail.com>
      Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
      e7bcf823
    • T
      ext4: use s_csum_seed instead of i_csum_seed for xattr block · 41eb70dd
      Tao Ma 提交于
      In xattr block operation, we use h_refcount to indicate whether the
      xattr block is shared among many inodes. And xattr block csum uses
      s_csum_seed if it is shared and i_csum_seed if it belongs to
      one inode. But this has a problem. So consider the block is shared
      first bewteen inode A and B, and B has some xattr update and CoW
      the xattr block. When it updates the *old* xattr block(because
      of the h_refcount change) and calls ext4_xattr_release_block, we
      has no idea that inode A is the real owner of the *old* xattr
      block and we can't use the i_csum_seed of inode A either in xattr
      block csum calculation. And I don't think we have an easy way to
      find inode A.
      
      So this patch just removes the tricky i_csum_seed and we now uses
      s_csum_seed every time for the xattr block csum. The corresponding
      patch for the e2fsprogs will be sent in another patch.
      
      This is spotted by xfstests 117.
      Signed-off-by: NTao Ma <boyu.mt@taobao.com>
      Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
      Acked-by: NDarrick J. Wong <djwong@us.ibm.com>
      41eb70dd
    • T
      ext4: use proper csum calculation in ext4_rename · ef58f69c
      Tao Ma 提交于
      In ext4_rename, when the old name is a dir, we need to
      change ".." to its new parent and journal the change, so
      with metadata_csum enabled, we have to re-calc the csum.
      
      As the first block of the dir can be either a htree root
      or a normal directory block and we have different csum
      calculation for these 2 types, we have to choose the right
      one in ext4_rename.
      
      btw, it is found by xfstests 013.
      Signed-off-by: NTao Ma <boyu.mt@taobao.com>
      Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
      Acked-by: NDarrick J. Wong <djwong@us.ibm.com>
      ef58f69c
    • T
      ext4: fix overhead calculation used by ext4_statfs() · 952fc18e
      Theodore Ts'o 提交于
      Commit f975d6bc introduced bug which caused ext4_statfs() to
      miscalculate the number of file system overhead blocks.  This causes
      the f_blocks field in the statfs structure to be larger than it should
      be.  This would in turn cause the "df" output to show the number of
      data blocks in the file system and the number of data blocks used to
      be larger than they should be.
      Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
      Cc: stable@kernel.org
      952fc18e
  2. 01 7月, 2012 12 次提交
  3. 30 6月, 2012 9 次提交
  4. 29 6月, 2012 15 次提交