btrfs-progs: check/lowmem: Fix false alert of data extent backref lost for snapshot
[platform/upstream/btrfs-progs.git] / convert / source-fs.h
index a2b2198..f5314af 100644 (file)
 #define __BTRFS_CONVERT_SOURCE_FS_H__
 
 #include "kerncompat.h"
+#include <linux/kdev_t.h>
+#include <sys/types.h>
 #include <pthread.h>
-
+#include <sys/types.h>
 
 #define CONV_IMAGE_SUBVOL_OBJECTID BTRFS_FIRST_FREE_OBJECTID
 
@@ -102,6 +104,15 @@ static inline size_t acl_ea_size(int count)
        return sizeof(acl_ea_header) + count * sizeof(acl_ea_entry);
 }
 
+int ext2_acl_count(size_t size);
+
+#ifndef MKDEV
+#define MINORBITS      20
+#define MKDEV(ma, mi)  (((ma) << MINORBITS) | (mi))
+#endif
+
+dev_t decode_dev(u32 dev);
+
 struct btrfs_convert_operations {
        const char name[SOURCE_FS_NAME_LEN];
        int (*open_fs)(struct btrfs_convert_context *cctx, const char *devname);