btrfs-progs: image: update include lists
The tool IWYU (include what you use) suggests to remove and add some includes. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
288f8cb78f
commit
6d9b3835a6
14
image/main.c
14
image/main.c
|
@ -17,22 +17,31 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "kerncompat.h"
|
#include "kerncompat.h"
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dirent.h>
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
|
#include "kernel-lib/list.h"
|
||||||
|
#include "kernel-lib/rbtree.h"
|
||||||
|
#include "kernel-lib/rbtree_types.h"
|
||||||
|
#include "kernel-lib/sizes.h"
|
||||||
#include "kernel-shared/ctree.h"
|
#include "kernel-shared/ctree.h"
|
||||||
#include "kernel-shared/disk-io.h"
|
#include "kernel-shared/disk-io.h"
|
||||||
#include "kernel-shared/transaction.h"
|
#include "kernel-shared/transaction.h"
|
||||||
#include "kernel-shared/volumes.h"
|
#include "kernel-shared/volumes.h"
|
||||||
#include "kernel-shared/extent_io.h"
|
#include "kernel-shared/extent_io.h"
|
||||||
#include "crypto/crc32c.h"
|
#include "crypto/crc32c.h"
|
||||||
|
#include "common/internal.h"
|
||||||
|
#include "common/messages.h"
|
||||||
#include "common/box.h"
|
#include "common/box.h"
|
||||||
#include "common/utils.h"
|
#include "common/utils.h"
|
||||||
#include "common/extent-cache.h"
|
#include "common/extent-cache.h"
|
||||||
|
@ -41,6 +50,7 @@
|
||||||
#include "common/open-utils.h"
|
#include "common/open-utils.h"
|
||||||
#include "image/metadump.h"
|
#include "image/metadump.h"
|
||||||
#include "image/sanitize.h"
|
#include "image/sanitize.h"
|
||||||
|
#include "ioctl.h"
|
||||||
|
|
||||||
#define MAX_WORKER_THREADS (32)
|
#define MAX_WORKER_THREADS (32)
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "kerncompat.h"
|
#include "kerncompat.h"
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include "kernel-lib/rbtree.h"
|
||||||
|
#include "kernel-shared/ctree.h"
|
||||||
#include "kernel-shared/extent_io.h"
|
#include "kernel-shared/extent_io.h"
|
||||||
#include "common/internal.h"
|
#include "common/internal.h"
|
||||||
#include "common/messages.h"
|
#include "common/messages.h"
|
||||||
|
|
|
@ -18,7 +18,10 @@
|
||||||
#define __BTRFS_IMAGE_SANITIZE_H__
|
#define __BTRFS_IMAGE_SANITIZE_H__
|
||||||
|
|
||||||
#include "kerncompat.h"
|
#include "kerncompat.h"
|
||||||
#include "image/metadump.h"
|
#include "kernel-lib/rbtree_types.h"
|
||||||
|
|
||||||
|
struct btrfs_key;
|
||||||
|
struct extent_buffer;
|
||||||
|
|
||||||
struct name {
|
struct name {
|
||||||
struct rb_node n;
|
struct rb_node n;
|
||||||
|
|
Loading…
Reference in New Issue