transaction.c (c0af8f0b1cf7ec5cde4450be9f8bfeb8c211d40a) transaction.c (6c255e67cec1c38a0569c7f823eba63f9449ccf8)
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

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

1615 ret = btrfs_run_ordered_operations(trans, root, 1);
1616
1617 return ret;
1618}
1619
1620static inline int btrfs_start_delalloc_flush(struct btrfs_fs_info *fs_info)
1621{
1622 if (btrfs_test_opt(fs_info->tree_root, FLUSHONCOMMIT))
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

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

1615 ret = btrfs_run_ordered_operations(trans, root, 1);
1616
1617 return ret;
1618}
1619
1620static inline int btrfs_start_delalloc_flush(struct btrfs_fs_info *fs_info)
1621{
1622 if (btrfs_test_opt(fs_info->tree_root, FLUSHONCOMMIT))
1623 return btrfs_start_delalloc_roots(fs_info, 1);
1623 return btrfs_start_delalloc_roots(fs_info, 1, -1);
1624 return 0;
1625}
1626
1627static inline void btrfs_wait_delalloc_flush(struct btrfs_fs_info *fs_info)
1628{
1629 if (btrfs_test_opt(fs_info->tree_root, FLUSHONCOMMIT))
1630 btrfs_wait_ordered_roots(fs_info, -1);
1631}

--- 380 unchanged lines hidden ---
1624 return 0;
1625}
1626
1627static inline void btrfs_wait_delalloc_flush(struct btrfs_fs_info *fs_info)
1628{
1629 if (btrfs_test_opt(fs_info->tree_root, FLUSHONCOMMIT))
1630 btrfs_wait_ordered_roots(fs_info, -1);
1631}

--- 380 unchanged lines hidden ---