Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebb8765b authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

btrfs: move btrfs_compression_type to compression.h



So that its better organized.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 8ae1af3c
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -106,6 +106,7 @@
#include "locking.h"
#include "locking.h"
#include "check-integrity.h"
#include "check-integrity.h"
#include "rcu-string.h"
#include "rcu-string.h"
#include "compression.h"


#define BTRFSIC_BLOCK_HASHTABLE_SIZE 0x10000
#define BTRFSIC_BLOCK_HASHTABLE_SIZE 0x10000
#define BTRFSIC_BLOCK_LINK_HASHTABLE_SIZE 0x10000
#define BTRFSIC_BLOCK_LINK_HASHTABLE_SIZE 0x10000
+9 −0
Original line number Original line Diff line number Diff line
@@ -48,6 +48,15 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
void btrfs_clear_biovec_end(struct bio_vec *bvec, int vcnt,
void btrfs_clear_biovec_end(struct bio_vec *bvec, int vcnt,
				   unsigned long pg_index,
				   unsigned long pg_index,
				   unsigned long pg_offset);
				   unsigned long pg_offset);

enum btrfs_compression_type {
	BTRFS_COMPRESS_NONE  = 0,
	BTRFS_COMPRESS_ZLIB  = 1,
	BTRFS_COMPRESS_LZO   = 2,
	BTRFS_COMPRESS_TYPES = 2,
	BTRFS_COMPRESS_LAST  = 3,
};

struct btrfs_compress_op {
struct btrfs_compress_op {
	struct list_head *(*alloc_workspace)(void);
	struct list_head *(*alloc_workspace)(void);


+0 −8
Original line number Original line Diff line number Diff line
@@ -718,14 +718,6 @@ struct btrfs_timespec {
	__le32 nsec;
	__le32 nsec;
} __attribute__ ((__packed__));
} __attribute__ ((__packed__));


enum btrfs_compression_type {
	BTRFS_COMPRESS_NONE  = 0,
	BTRFS_COMPRESS_ZLIB  = 1,
	BTRFS_COMPRESS_LZO   = 2,
	BTRFS_COMPRESS_TYPES = 2,
	BTRFS_COMPRESS_LAST  = 3,
};

struct btrfs_inode_item {
struct btrfs_inode_item {
	/* nfs style generation number */
	/* nfs style generation number */
	__le64 generation;
	__le64 generation;
+1 −0
Original line number Original line Diff line number Diff line
@@ -50,6 +50,7 @@
#include "raid56.h"
#include "raid56.h"
#include "sysfs.h"
#include "sysfs.h"
#include "qgroup.h"
#include "qgroup.h"
#include "compression.h"


#ifdef CONFIG_X86
#ifdef CONFIG_X86
#include <asm/cpufeature.h>
#include <asm/cpufeature.h>
+1 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,7 @@
#include <linux/hardirq.h>
#include <linux/hardirq.h>
#include "ctree.h"
#include "ctree.h"
#include "extent_map.h"
#include "extent_map.h"
#include "compression.h"




static struct kmem_cache *extent_map_cache;
static struct kmem_cache *extent_map_cache;
Loading