ctree.h (1136fa0c07de570dc17858745af8be169d1440ba) ctree.h (b4be6aefa73c9a6899ef3ba9c5faaa8a66e333ef)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#ifndef BTRFS_CTREE_H
7#define BTRFS_CTREE_H
8

--- 588 unchanged lines hidden (view full) ---

597 BTRFS_FS_FREE_SPACE_TREE_UNTRUSTED,
598
599 /* Indicate whether there are any tree modification log users */
600 BTRFS_FS_TREE_MOD_LOG_USERS,
601
602 /* Indicate that we want the transaction kthread to commit right now. */
603 BTRFS_FS_COMMIT_TRANS,
604
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#ifndef BTRFS_CTREE_H
7#define BTRFS_CTREE_H
8

--- 588 unchanged lines hidden (view full) ---

597 BTRFS_FS_FREE_SPACE_TREE_UNTRUSTED,
598
599 /* Indicate whether there are any tree modification log users */
600 BTRFS_FS_TREE_MOD_LOG_USERS,
601
602 /* Indicate that we want the transaction kthread to commit right now. */
603 BTRFS_FS_COMMIT_TRANS,
604
605 /* Indicate we have half completed snapshot deletions pending. */
606 BTRFS_FS_UNFINISHED_DROPS,
607
605#if BITS_PER_LONG == 32
606 /* Indicate if we have error/warn message printed on 32bit systems */
607 BTRFS_FS_32BIT_ERROR,
608 BTRFS_FS_32BIT_WARN,
609#endif
610};
611
612/*

--- 488 unchanged lines hidden (view full) ---

1101 /* Mark dead root stored on device whose cleanup needs to be resumed */
1102 BTRFS_ROOT_DEAD_TREE,
1103 /* The root has a log tree. Used for subvolume roots and the tree root. */
1104 BTRFS_ROOT_HAS_LOG_TREE,
1105 /* Qgroup flushing is in progress */
1106 BTRFS_ROOT_QGROUP_FLUSHING,
1107 /* We started the orphan cleanup for this root. */
1108 BTRFS_ROOT_ORPHAN_CLEANUP,
608#if BITS_PER_LONG == 32
609 /* Indicate if we have error/warn message printed on 32bit systems */
610 BTRFS_FS_32BIT_ERROR,
611 BTRFS_FS_32BIT_WARN,
612#endif
613};
614
615/*

--- 488 unchanged lines hidden (view full) ---

1104 /* Mark dead root stored on device whose cleanup needs to be resumed */
1105 BTRFS_ROOT_DEAD_TREE,
1106 /* The root has a log tree. Used for subvolume roots and the tree root. */
1107 BTRFS_ROOT_HAS_LOG_TREE,
1108 /* Qgroup flushing is in progress */
1109 BTRFS_ROOT_QGROUP_FLUSHING,
1110 /* We started the orphan cleanup for this root. */
1111 BTRFS_ROOT_ORPHAN_CLEANUP,
1112 /* This root has a drop operation that was started previously. */
1113 BTRFS_ROOT_UNFINISHED_DROP,
1109};
1110
1114};
1115
1116static inline void btrfs_wake_unfinished_drop(struct btrfs_fs_info *fs_info)
1117{
1118 clear_and_wake_up_bit(BTRFS_FS_UNFINISHED_DROPS, &fs_info->flags);
1119}
1120
1111/*
1112 * Record swapped tree blocks of a subvolume tree for delayed subtree trace
1113 * code. For detail check comment in fs/btrfs/qgroup.c.
1114 */
1115struct btrfs_qgroup_swapped_blocks {
1116 spinlock_t lock;
1117 /* RM_EMPTY_ROOT() of above blocks[] */
1118 bool swapped;

--- 2167 unchanged lines hidden (view full) ---

3286void btrfs_exclop_balance(struct btrfs_fs_info *fs_info,
3287 enum btrfs_exclusive_operation op);
3288
3289
3290/* file.c */
3291int __init btrfs_auto_defrag_init(void);
3292void __cold btrfs_auto_defrag_exit(void);
3293int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans,
1121/*
1122 * Record swapped tree blocks of a subvolume tree for delayed subtree trace
1123 * code. For detail check comment in fs/btrfs/qgroup.c.
1124 */
1125struct btrfs_qgroup_swapped_blocks {
1126 spinlock_t lock;
1127 /* RM_EMPTY_ROOT() of above blocks[] */
1128 bool swapped;

--- 2167 unchanged lines hidden (view full) ---

3296void btrfs_exclop_balance(struct btrfs_fs_info *fs_info,
3297 enum btrfs_exclusive_operation op);
3298
3299
3300/* file.c */
3301int __init btrfs_auto_defrag_init(void);
3302void __cold btrfs_auto_defrag_exit(void);
3303int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans,
3294 struct btrfs_inode *inode);
3304 struct btrfs_inode *inode, u32 extent_thresh);
3295int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info);
3296void btrfs_cleanup_defrag_inodes(struct btrfs_fs_info *fs_info);
3297int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync);
3298void btrfs_drop_extent_cache(struct btrfs_inode *inode, u64 start, u64 end,
3299 int skip_pinned);
3300extern const struct file_operations btrfs_file_operations;
3301int btrfs_drop_extents(struct btrfs_trans_handle *trans,
3302 struct btrfs_root *root, struct btrfs_inode *inode,

--- 578 unchanged lines hidden ---
3305int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info);
3306void btrfs_cleanup_defrag_inodes(struct btrfs_fs_info *fs_info);
3307int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync);
3308void btrfs_drop_extent_cache(struct btrfs_inode *inode, u64 start, u64 end,
3309 int skip_pinned);
3310extern const struct file_operations btrfs_file_operations;
3311int btrfs_drop_extents(struct btrfs_trans_handle *trans,
3312 struct btrfs_root *root, struct btrfs_inode *inode,

--- 578 unchanged lines hidden ---