aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
Commit message (Collapse)AuthorAge
...
* Btrfs: Create extent_buffer interface for large blocksizesChris Mason2008-09-25
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Fix duplicate ENOSPC checks in find_free_extentChris Mason2008-09-25
| | | | | | | | find_free_extent would fail to wrap around to the start of the drive because it was doing the enospc case checking twice in some cases, causing it to return -ENOSPC early. Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Use balance_dirty_pages_nr on btree blocksChris Mason2008-09-25
| | | | | | | | btrfs_btree_balance_dirty is changed to pass the number of pages dirtied for more accurate dirty throttling. This lets the VM make better decisions about when to force some writeback. Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Fix cache_block_group to catch holes at the start of the groupYan2007-09-14
| | | | | | | Cache block group was overly complex and missed free blocks at the very start of the group. This patch simplifies things significantly. Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Fix oopsen in extent_tree.c during enospcYan2007-08-29
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Add per-root block accounting and sysfs entriesJosef Bacik2007-08-29
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Add delayed allocation to the extent based page tree codeChris Mason2007-08-27
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Do more extensive readahead during tree searchesChris Mason2007-08-27
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Add BH_Defrag to mark buffers that are in need of defraggingChris Mason2007-08-10
| | | | | | | | This allows the tree walking code to defrag only the newly allocated buffers, it seems to be a good balance between perfect defragging and the performance hit of repeatedly reallocating blocks. Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Btree defrag on the extent-mapping tree as wellChris Mason2007-08-10
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Further reduce the concurrency penalty of defrag and drop_snapshotChris Mason2007-08-08
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Replace extent tree preallocation code with some bit radix magic.Chris Mason2007-08-08
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Let some locks go during defrag and snapshot droppingChris Mason2007-08-08
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Add run time btree defrag, and an ioctl to force btree defragChris Mason2007-08-07
| | | | | | | | | | | This adds two types of btree defrag, a run time form that tries to defrag recently allocated blocks in the btree when they are still in ram, and an ioctl that forces defrag of all btree blocks. File data blocks are not defragged yet, but this can make a huge difference in sequential btree reads. Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Fold some btree readahead routines into something more generic.Chris Mason2007-08-07
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Do snapshot deletion in smaller chunks.Chris Mason2007-08-07
| | | | | | | | | Before, snapshot deletion was a single atomic unit. This caused considerable lock contention and required an unbounded amount of space. Now, the drop_progress field in the root item is used to indicate how far along snapshot deletion is, and to resume where it left off. Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: trivial include fixupsZach Brown2007-07-11
| | | | | | | | | | | Almost none of the files including module.h need to do so, remove them. Include sched.h in extent-tree.c to silence a warning about cond_resched() being undeclared. Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: crash recovery fixesChris Mason2007-06-28
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Allow find_free_extent callers to pass in an exclusion rangeChris Mason2007-06-26
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Fix super block updates during transaction commitChris Mason2007-06-26
| | | | | | | | The super block written during commit was not consistent with the state of the trees. This change adds an in-memory copy of the super so that we can make sure to write out consistent data during a commit. Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: Audit callers and return codes to make sure -ENOSPC gets up the stackChris Mason2007-06-22
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: reada while dropping snapshotsChris Mason2007-06-19
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: cache the extent tree preallocationChris Mason2007-06-19
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Subject: Rework btrfs_file_write to only allocate while page locks are heldChris Mason2007-06-18
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* btrfs: Code cleanupAneesh2007-06-13
| | | | | | | | | | | Attaching below is some of the code cleanups that i came across while reading the code. a) alloc_path already calls init_path. b) Mention that btrfs_inode is the in memory copy.Ext4 have ext4_inode_info as the in memory copy ext4_inode as the disk copy Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: add GPLv2Chris Mason2007-06-12
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: printk fixesChris Mason2007-06-12
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: 64 bit div fixesChris Mason2007-06-12
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: fix oops after block group lookupChris Mason2007-06-11
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: d_type optimizationChris Mason2007-06-07
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: use a separate flag for search_start vs a hint in find_free_extentChris Mason2007-05-30
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: block group switchingChris Mason2007-05-29
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: sparse files!Chris Mason2007-05-24
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: allocator optimizations, truncate readaheadChris Mason2007-05-18
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: fix check_node and check_leaf to use less cpuChris Mason2007-05-10
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: many allocator fixes, pretty solidChris Mason2007-05-09
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: allocator and tuningChris Mason2007-05-07
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: more allocator enhancementsChris Mason2007-05-06
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: early metadata/data splitChris Mason2007-05-03
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: fix page cache memory leakChris Mason2007-05-02
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: directory readaheadChris Mason2007-05-01
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: allocator improvements, inode block groupsChris Mason2007-04-30
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: prealloc more blocks for the extent mapChris Mason2007-04-28
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: smarter transaction writebackChris Mason2007-04-28
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: try to drop dead cow pages from ramChris Mason2007-04-28
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: allocator tweaksChris Mason2007-04-27
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: more block allocator workChris Mason2007-04-27
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: start of block group codeChris Mason2007-04-26
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: change around extent-tree preallocChris Mason2007-04-25
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Btrfs: get rid of the extent_item type fieldChris Mason2007-04-24
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>