1. 19 4月, 2012 3 次提交
    • A
      btrfs: don't add both copies of DUP to reada extent tree · 207a232c
      Arne Jansen 提交于
      Normally when there are 2 copies of a block, we add both to the
      reada extent tree and prefetch only the one that is easier to reach.
      This way we can better utilize multiple devices.
      In case of DUP this makes no sense as both copies reside on the
      same device.
      Signed-off-by: NArne Jansen <sensille@gmx.net>
      207a232c
    • A
      btrfs: fix race in reada · 8c9c2bf7
      Arne Jansen 提交于
      When inserting into the radix tree returns EEXIST, get the existing
      entry without giving up the spinlock in between.
      There was a race for both the zones trees and the extent tree.
      Signed-off-by: NArne Jansen <sensille@gmx.net>
      8c9c2bf7
    • L
      Btrfs: avoid setting ->d_op twice · 848cce0d
      Li Zefan 提交于
      Follow those instructions, and you'll trigger a warning in the
      beginning of d_set_d_op():
      
        # mkfs.btrfs /dev/loop3
        # mount /dev/loop3 /mnt
        # btrfs sub create /mnt/sub
        # btrfs sub snap /mnt /mnt/snap
        # touch /mnt/snap/sub
        touch: cannot touch `tmp': Permission denied
      
      __d_alloc() set d_op to sb->s_d_op (btrfs_dentry_operations), and
      then simple_lookup() reset it to simple_dentry_operations, which
      triggered the warning.
      Signed-off-by: NLi Zefan <lizf@cn.fujitsu.com>
      848cce0d
  2. 13 4月, 2012 7 次提交
  3. 30 3月, 2012 1 次提交
  4. 29 3月, 2012 15 次提交
  5. 28 3月, 2012 3 次提交
  6. 27 3月, 2012 11 次提交