ioctl.c (b3bbcc5d1da1b654091dad15980b3d58fdae0fc6) | ioctl.c (dbbf49928f2eb118036766fae503be1314620cce) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2007 Oracle. All rights reserved. 4 */ 5 6#include <linux/kernel.h> 7#include <linux/bio.h> 8#include <linux/file.h> --- 1602 unchanged lines hidden (view full) --- 1611 1612 ASSERT(last_index - first_index + 1 <= nr_pages); 1613 1614 ret = btrfs_delalloc_reserve_space(inode, &data_reserved, start, len); 1615 if (ret < 0) 1616 return ret; 1617 clear_extent_bit(&inode->io_tree, start, start + len - 1, 1618 EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING | | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2007 Oracle. All rights reserved. 4 */ 5 6#include <linux/kernel.h> 7#include <linux/bio.h> 8#include <linux/file.h> --- 1602 unchanged lines hidden (view full) --- 1611 1612 ASSERT(last_index - first_index + 1 <= nr_pages); 1613 1614 ret = btrfs_delalloc_reserve_space(inode, &data_reserved, start, len); 1615 if (ret < 0) 1616 return ret; 1617 clear_extent_bit(&inode->io_tree, start, start + len - 1, 1618 EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING | |
1619 EXTENT_DEFRAG, 0, 0, cached_state); | 1619 EXTENT_DEFRAG, 0, cached_state); |
1620 set_extent_defrag(&inode->io_tree, start, start + len - 1, cached_state); 1621 1622 /* Update the page status */ 1623 for (i = start_index - first_index; i <= last_index - first_index; i++) { 1624 ClearPageChecked(pages[i]); 1625 btrfs_page_clamp_set_dirty(fs_info, pages[i], start, len); 1626 } 1627 btrfs_delalloc_release_extents(inode, len); --- 3966 unchanged lines hidden --- | 1620 set_extent_defrag(&inode->io_tree, start, start + len - 1, cached_state); 1621 1622 /* Update the page status */ 1623 for (i = start_index - first_index; i <= last_index - first_index; i++) { 1624 ClearPageChecked(pages[i]); 1625 btrfs_page_clamp_set_dirty(fs_info, pages[i], start, len); 1626 } 1627 btrfs_delalloc_release_extents(inode, len); --- 3966 unchanged lines hidden --- |