~ubuntu-branches/ubuntu/utopic/btrfs-tools/utopic-proposed

« back to all changes in this revision

Viewing changes to .pc/09-unaligned-memaccess.patch/volumes.c

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-02-11 13:27:15 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130211132715-h04yfy61mf7scqfr
Tags: 0.19+20130117-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
652
652
        int index;
653
653
        int stripe_len = 64 * 1024;
654
654
        struct btrfs_key key;
 
655
        u64 offset;
655
656
 
656
657
        if (list_empty(dev_list)) {
657
658
                return -ENOSPC;
757
758
                }
758
759
                return -ENOSPC;
759
760
        }
760
 
        key.objectid = BTRFS_FIRST_CHUNK_TREE_OBJECTID;
761
 
        key.type = BTRFS_CHUNK_ITEM_KEY;
762
761
        ret = find_next_chunk(chunk_root, BTRFS_FIRST_CHUNK_TREE_OBJECTID,
763
 
                              &key.offset);
 
762
                              &offset);
764
763
        if (ret)
765
764
                return ret;
 
765
        key.objectid = BTRFS_FIRST_CHUNK_TREE_OBJECTID;
 
766
        key.type = BTRFS_CHUNK_ITEM_KEY;
 
767
        key.offset = offset;
766
768
 
767
769
        chunk = kmalloc(btrfs_chunk_item_size(num_stripes), GFP_NOFS);
768
770
        if (!chunk)