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

« back to all changes in this revision

Viewing changes to 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:
2263
2263
int btrfs_previous_item(struct btrfs_root *root,
2264
2264
                        struct btrfs_path *path, u64 min_objectid,
2265
2265
                        int type);
 
2266
int btrfs_previous_extent_item(struct btrfs_root *root,
 
2267
                        struct btrfs_path *path, u64 min_objectid);
2266
2268
int btrfs_cow_block(struct btrfs_trans_handle *trans,
2267
2269
                    struct btrfs_root *root, struct extent_buffer *buf,
2268
2270
                    struct extent_buffer *parent, int parent_slot,
2291
2293
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root
2292
2294
                      *root, struct btrfs_key *key, struct btrfs_path *p, int
2293
2295
                      ins_len, int cow);
 
2296
int btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *found_path,
 
2297
                u64 iobjectid, u64 ioff, u8 key_type,
 
2298
                struct btrfs_key *found_key);
2294
2299
void btrfs_release_path(struct btrfs_path *p);
2295
2300
void add_root_to_dirty_list(struct btrfs_root *root);
2296
2301
struct btrfs_path *btrfs_alloc_path(void);
2323
2328
}
2324
2329
 
2325
2330
int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path);
 
2331
static inline int btrfs_next_item(struct btrfs_root *root,
 
2332
                                  struct btrfs_path *p)
 
2333
{
 
2334
        ++p->slots[0];
 
2335
        if (p->slots[0] >= btrfs_header_nritems(p->nodes[0]))
 
2336
                return btrfs_next_leaf(root, p);
 
2337
        return 0;
 
2338
}
 
2339
 
2326
2340
int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path);
2327
2341
int btrfs_leaf_free_space(struct btrfs_root *root, struct extent_buffer *leaf);
2328
2342
void btrfs_fixup_low_keys(struct btrfs_root *root, struct btrfs_path *path,
2356
2370
                                             struct btrfs_path *path, u64 dir,
2357
2371
                                             const char *name, int name_len,
2358
2372
                                             int mod);
 
2373
struct btrfs_dir_item *btrfs_lookup_dir_index(struct btrfs_trans_handle *trans,
 
2374
                                              struct btrfs_root *root,
 
2375
                                              struct btrfs_path *path, u64 dir,
 
2376
                                              const char *name, int name_len,
 
2377
                                              u64 index, int mod);
 
2378
int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans,
 
2379
                              struct btrfs_root *root,
 
2380
                              struct btrfs_path *path,
 
2381
                              struct btrfs_dir_item *di);
2359
2382
int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans,
2360
2383
                            struct btrfs_root *root, const char *name,
2361
2384
                            u16 name_len, const void *data, u16 data_len,