@@ -2402,11 +2402,7 @@ void btrfs_set_delalloc_extent(struct btrfs_inode *inode, struct extent_state *s
if ((bits & EXTENT_DEFRAG) && !(bits & EXTENT_DELALLOC))
WARN_ON(1);
- /*
- * set_bit and clear bit hooks normally require _irqsave/restore
- * but in this case, we are only testing for the DELALLOC
- * bit, which is only set or cleared with irqs on
- */
+
if (!(state->state & EXTENT_DELALLOC) && (bits & EXTENT_DELALLOC)) {
struct btrfs_root *root = inode->root;
u64 len = state->end + 1 - state->start;
@@ -2458,11 +2454,6 @@ void btrfs_clear_delalloc_extent(struct btrfs_inode *inode,
spin_unlock(&inode->lock);
}
- /*
- * set_bit and clear bit hooks normally require _irqsave/restore
- * but in this case, we are only testing for the DELALLOC
- * bit, which is only set or cleared with irqs on
- */
if ((state->state & EXTENT_DELALLOC) && (bits & EXTENT_DELALLOC)) {
struct btrfs_root *root = inode->root;
bool do_list = !btrfs_is_free_space_inode(inode);
As far as I can tell there is no such thing as set_bit and test_bit hooks, and there also isn't any irq disabling near the data structures used here. Signed-off-by: Christoph Hellwig <hch@lst.de> --- fs/btrfs/inode.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)