~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-09-21 02:05:14 UTC
  • mfrom: (1.2.13) (6.1.38 sid)
  • Revision ID: package-import@ubuntu.com-20140921020514-kx4b23aw4grvevrc
Tags: 3.16-1
* New upstream release.
* Add asciidoc & xmlto build dependencies.
* Disable test-suites for now, should be run as autopkgtests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
struct btrfs_free_space_ctl;
43
43
#define BTRFS_MAGIC 0x4D5F53665248425FULL /* ascii _BHRfS_M, no null */
44
44
 
 
45
#define BTRFS_MAX_MIRRORS 3
 
46
 
45
47
#define BTRFS_MAX_LEVEL 8
46
48
 
47
49
#define BTRFS_COMPAT_EXTENT_TREE_V0
945
947
        struct btrfs_root *chunk_root;
946
948
        struct btrfs_root *dev_root;
947
949
        struct btrfs_root *csum_root;
 
950
        struct btrfs_root *quota_root;
948
951
 
949
952
        struct rb_root fs_root_tree;
950
953
 
990
993
        unsigned int readonly:1;
991
994
        unsigned int on_restoring:1;
992
995
        unsigned int is_chunk_recover:1;
 
996
        unsigned int quota_enabled:1;
993
997
 
994
998
        int (*free_extent_hook)(struct btrfs_trans_handle *trans,
995
999
                                struct btrfs_root *root,
2392
2396
int btrfs_lookup_uuid_subvol_item(int fd, const u8 *uuid, u64 *subvol_id);
2393
2397
int btrfs_lookup_uuid_received_subvol_item(int fd, const u8 *uuid,
2394
2398
                                           u64 *subvol_id);
 
2399
 
 
2400
static inline int is_fstree(u64 rootid)
 
2401
{
 
2402
        if (rootid == BTRFS_FS_TREE_OBJECTID ||
 
2403
            (signed long long)rootid >= (signed long long)BTRFS_FIRST_FREE_OBJECTID)
 
2404
                return 1;
 
2405
        return 0;
 
2406
}
2395
2407
#endif