extent_map.c (2e0cdaa0288bbe3d6a05937bc7b61aa9da0cb2bf) extent_map.c (74333c7d87914ef1c250d3ea9441e88e15039bd8)
1// SPDX-License-Identifier: GPL-2.0
2
3#include <linux/err.h>
4#include <linux/slab.h>
5#include <linux/spinlock.h>
6#include "ctree.h"
7#include "volumes.h"
8#include "extent_map.h"

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

329out:
330 write_unlock(&tree->lock);
331 return ret;
332
333}
334
335void clear_em_logging(struct extent_map_tree *tree, struct extent_map *em)
336{
1// SPDX-License-Identifier: GPL-2.0
2
3#include <linux/err.h>
4#include <linux/slab.h>
5#include <linux/spinlock.h>
6#include "ctree.h"
7#include "volumes.h"
8#include "extent_map.h"

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

329out:
330 write_unlock(&tree->lock);
331 return ret;
332
333}
334
335void clear_em_logging(struct extent_map_tree *tree, struct extent_map *em)
336{
337 lockdep_assert_held_write(&tree->lock);
338
337 clear_bit(EXTENT_FLAG_LOGGING, &em->flags);
338 if (extent_map_in_tree(em))
339 try_merge_map(tree, em);
340}
341
342static inline void setup_extent_mapping(struct extent_map_tree *tree,
343 struct extent_map *em,
344 int modified)

--- 575 unchanged lines hidden ---
339 clear_bit(EXTENT_FLAG_LOGGING, &em->flags);
340 if (extent_map_in_tree(em))
341 try_merge_map(tree, em);
342}
343
344static inline void setup_extent_mapping(struct extent_map_tree *tree,
345 struct extent_map *em,
346 int modified)

--- 575 unchanged lines hidden ---