transaction.c (826582cabc22e741ef3d420fd53b83de988b5647) transaction.c (29cbcf401793f4e2c871c846edc2191731df2c41)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#include <linux/fs.h>
7#include <linux/slab.h>
8#include <linux/sched.h>

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

414 struct btrfs_root *root,
415 int force)
416{
417 struct btrfs_fs_info *fs_info = root->fs_info;
418 int ret = 0;
419
420 if ((test_bit(BTRFS_ROOT_SHAREABLE, &root->state) &&
421 root->last_trans < trans->transid) || force) {
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#include <linux/fs.h>
7#include <linux/slab.h>
8#include <linux/sched.h>

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

414 struct btrfs_root *root,
415 int force)
416{
417 struct btrfs_fs_info *fs_info = root->fs_info;
418 int ret = 0;
419
420 if ((test_bit(BTRFS_ROOT_SHAREABLE, &root->state) &&
421 root->last_trans < trans->transid) || force) {
422 WARN_ON(root == fs_info->extent_root);
422 WARN_ON(root == fs_info->_extent_root);
423 WARN_ON(!force && root->commit_root != root->node);
424
425 /*
426 * see below for IN_TRANS_SETUP usage rules
427 * we have the reloc mutex held now, so there
428 * is only one writer in this function
429 */
430 set_bit(BTRFS_ROOT_IN_TRANS_SETUP, &root->state);

--- 2013 unchanged lines hidden ---
423 WARN_ON(!force && root->commit_root != root->node);
424
425 /*
426 * see below for IN_TRANS_SETUP usage rules
427 * we have the reloc mutex held now, so there
428 * is only one writer in this function
429 */
430 set_bit(BTRFS_ROOT_IN_TRANS_SETUP, &root->state);

--- 2013 unchanged lines hidden ---