~ubuntu-branches/debian/jessie/btrfs-tools/jessie

« back to all changes in this revision

Viewing changes to .pc/0001-Fixing-unaligned-memory-accesses.patch/ctree.h

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-10-23 22:04:07 UTC
  • mfrom: (1.2.15) (6.1.40 sid)
  • Revision ID: package-import@ubuntu.com-20141023220407-skt9hy0ft4oim95o
Tags: 3.17-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2253
2253
int btrfs_previous_item(struct btrfs_root *root,
2254
2254
                        struct btrfs_path *path, u64 min_objectid,
2255
2255
                        int type);
 
2256
int btrfs_previous_extent_item(struct btrfs_root *root,
 
2257
                        struct btrfs_path *path, u64 min_objectid);
2256
2258
int btrfs_cow_block(struct btrfs_trans_handle *trans,
2257
2259
                    struct btrfs_root *root, struct extent_buffer *buf,
2258
2260
                    struct extent_buffer *parent, int parent_slot,
2281
2283
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root
2282
2284
                      *root, struct btrfs_key *key, struct btrfs_path *p, int
2283
2285
                      ins_len, int cow);
 
2286
int btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *found_path,
 
2287
                u64 iobjectid, u64 ioff, u8 key_type,
 
2288
                struct btrfs_key *found_key);
2284
2289
void btrfs_release_path(struct btrfs_path *p);
2285
2290
void add_root_to_dirty_list(struct btrfs_root *root);
2286
2291
struct btrfs_path *btrfs_alloc_path(void);
2313
2318
}
2314
2319
 
2315
2320
int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path);
 
2321
static inline int btrfs_next_item(struct btrfs_root *root,
 
2322
                                  struct btrfs_path *p)
 
2323
{
 
2324
        ++p->slots[0];
 
2325
        if (p->slots[0] >= btrfs_header_nritems(p->nodes[0]))
 
2326
                return btrfs_next_leaf(root, p);
 
2327
        return 0;
 
2328
}
 
2329
 
2316
2330
int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path);
2317
2331
int btrfs_leaf_free_space(struct btrfs_root *root, struct extent_buffer *leaf);
2318
2332
void btrfs_fixup_low_keys(struct btrfs_root *root, struct btrfs_path *path,
2346
2360
                                             struct btrfs_path *path, u64 dir,
2347
2361
                                             const char *name, int name_len,
2348
2362
                                             int mod);
 
2363
struct btrfs_dir_item *btrfs_lookup_dir_index(struct btrfs_trans_handle *trans,
 
2364
                                              struct btrfs_root *root,
 
2365
                                              struct btrfs_path *path, u64 dir,
 
2366
                                              const char *name, int name_len,
 
2367
                                              u64 index, int mod);
 
2368
int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans,
 
2369
                              struct btrfs_root *root,
 
2370
                              struct btrfs_path *path,
 
2371
                              struct btrfs_dir_item *di);
2349
2372
int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans,
2350
2373
                            struct btrfs_root *root, const char *name,
2351
2374
                            u16 name_len, const void *data, u16 data_len,