search for: alloc_start

Displaying 13 results from an estimated 13 matches for "alloc_start".

Did you mean: vmalloc_start
2009 Nov 02
0
[PATCH 7/8] Make fallocate(2) more ENOSPC friendly
...nreserve_metadata_space(root, 3); } - return ret; } @@ -5641,8 +5705,6 @@ static long btrfs_fallocate(struct inode u64 locked_end; u64 mask = BTRFS_I(inode)->root->sectorsize - 1; struct extent_map *em; - struct btrfs_trans_handle *trans; - struct btrfs_root *root; int ret; alloc_start = offset & ~mask; @@ -5661,9 +5723,7 @@ static long btrfs_fallocate(struct inode goto out; } - root = BTRFS_I(inode)->root; - - ret = btrfs_check_data_free_space(root, inode, + ret = btrfs_check_data_free_space(BTRFS_I(inode)->root, inode, alloc_end - alloc_start); if (r...
2013 Oct 25
0
[PATCH] Btrfs: return an error from btrfs_wait_ordered_range
...>i_mutex); + return ret; + } } path = btrfs_alloc_path(); @@ -2312,7 +2319,10 @@ static long btrfs_fallocate(struct file *file, int mode, * wait for ordered IO before we have any locks. We''ll loop again * below with the locks held. */ - btrfs_wait_ordered_range(inode, alloc_start, alloc_end - alloc_start); + ret = btrfs_wait_ordered_range(inode, alloc_start, + alloc_end - alloc_start); + if (ret) + goto out; locked_end = alloc_end - 1; while (1) { @@ -2336,8 +2346,10 @@ static long btrfs_fallocate(struct file *file, int mode, * we can''t wait o...
2013 Sep 05
3
[PATCH v2 0/3] btrfs-progs: prevent mkfs from aborting with small volume
Here are 3 patches to avoid undesired aborts of mkfs.btrfs. These are based on top of Chris''s btrfs-progs.git: git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git Thanks, H.Seto Hidetoshi Seto (3): btrfs-progs: error if device for mkfs is too small btrfs-progs: error if device have no space to make primary chunks btrfs-progs: calculate available
2011 Apr 12
3
[PATCH v2 0/3] btrfs: quasi-round-robin for chunk allocation
...cation of the map. We still avoid allocating stripes that are not a multiple of STRIPE_SIZE. Changes from v1: - split into multiple parts - added some comments - generated with --patience for better readability Arne Jansen (3): btrfs: move btrfs_cmp_device_free_bytes to super.c btrfs: heed alloc_start btrfs: quasi-round-robin for chunk allocation fs/btrfs/super.c | 25 +++ fs/btrfs/volumes.c | 492 ++++++++++++++++++---------------------------------- fs/btrfs/volumes.h | 16 +-- 3 files changed, 195 insertions(+), 338 deletions(-) -- 1.7.3.4 -- To unsubscribe from this list: send t...
2008 Jan 15
2
[ANNOUNCE] Btrfs v0.10 available
...n one snapshot. This is targeted at database workloads, where copy on write is not optimal for performance. However the explicit back references allow the nodatacow code to make sure copy on write is done when multiple snapshots reference the same file, maintaining snapshot consistency. mount -o alloc_start=num forces allocation hints to start at least num bytes into the disk. This was introduced to test the resizer. Example usage: mount -o alloc_start=16g /dev/xxxx /mnt (do something to the FS) btrfsctl -r 12g /mnt The btrfsctl command will resize the FS down to 12GB in size. Because the FS was...
2008 Jan 15
2
[ANNOUNCE] Btrfs v0.10 available
...n one snapshot. This is targeted at database workloads, where copy on write is not optimal for performance. However the explicit back references allow the nodatacow code to make sure copy on write is done when multiple snapshots reference the same file, maintaining snapshot consistency. mount -o alloc_start=num forces allocation hints to start at least num bytes into the disk. This was introduced to test the resizer. Example usage: mount -o alloc_start=16g /dev/xxxx /mnt (do something to the FS) btrfsctl -r 12g /mnt The btrfsctl command will resize the FS down to 12GB in size. Because the FS was...
2011 May 02
5
[PATCH v3 0/3] btrfs: quasi-round-robin for chunk allocation
...rebased to current master - bugfix for ''single'' raid type; the initial parameter initialization lacked a case for the ''single'' type, thus leaving devs_max at the wrong value Arne Jansen (3): btrfs: move btrfs_cmp_device_free_bytes to super.c btrfs: heed alloc_start btrfs: quasi-round-robin for chunk allocation fs/btrfs/super.c | 25 +++ fs/btrfs/volumes.c | 494 ++++++++++++++++++---------------------------------- fs/btrfs/volumes.h | 16 +-- 3 files changed, 197 insertions(+), 338 deletions(-) -- 1.7.3.4 -- To unsubscribe from this list: send t...
2009 Nov 14
2
[PATCH] btrfs-progs: Check mount status of multidevice filesystems
.../mkfs.c b/mkfs.c index 2e99b95..f226661 100644 --- a/mkfs.c +++ b/mkfs.c @@ -456,7 +456,7 @@ int main(int ac, char **av) fprintf(stderr, "error during mkfs %d\n", ret); exit(1); } - root = open_ctree(file, 0, O_RDWR); + root = open_ctree(file, 0, O_RDWR, 1); root->fs_info->alloc_start = alloc_start; ret = make_root_dir(root); diff --git a/utils.c b/utils.c index 2f4c6e1..60c3f24 100644 --- a/utils.c +++ b/utils.c @@ -31,6 +31,8 @@ #include <fcntl.h> #include <unistd.h> #include <mntent.h> +#include <linux/loop.h> +#include <limits.h> #includ...
2011 Aug 15
9
[patch v2 0/9] btrfs: More error handling patches
Hi all - The following 9 patches add more error handling to the btrfs code: - Add btrfs_panic - Catch locking failures in {set,clear}_extent_bit - Push up set_extent_bit errors to callers - Push up lock_extent errors to callers - Push up clear_extent_bit errors to callers - Push up unlock_extent errors to callers - Make pin_down_extent return void - Push up btrfs_pin_extent errors to
2011 Nov 01
0
[PATCH] Btrfs-progs: change the way mkfs picks raid profiles
...P_RAID10; } else if (strcmp(s, "single") == 0) { return 0; } else { fprintf(stderr, "Unknown option %s\n", s); print_usage(); } + /* not reached */ return 0; } @@ -1170,8 +1198,8 @@ int main(int ac, char **av) u64 dev_block_count = 0; u64 blocks[7]; u64 alloc_start = 0; - u64 metadata_profile = BTRFS_BLOCK_GROUP_RAID1 | BTRFS_BLOCK_GROUP_DUP; - u64 data_profile = BTRFS_BLOCK_GROUP_RAID0; + u64 metadata_profile = 0; + u64 data_profile = 0; u32 leafsize = getpagesize(); u32 sectorsize = 4096; u32 nodesize = leafsize; @@ -1303,11 +1331,6 @@ int main(int ac...
2011 Jul 26
0
[PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations
...fs_root *root, struct fstrim_range *range) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index a35e51c..e93cf0a 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1670,7 +1670,12 @@ static long btrfs_fallocate(struct file *file, int mode, unlock_extent_cached(&BTRFS_I(inode)->io_tree, alloc_start, locked_end, &cached_state, GFP_NOFS); - btrfs_free_reserved_data_space(inode, alloc_end - alloc_start); + /* + * We failed to allocate some of our space, so free up part of our + * reservation. + */ + if (cur_offset < alloc_end) + btrfs_free_reserved_data_space(inode, alloc_e...
2011 Jul 27
0
[PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations V2
...fs_root *root, struct fstrim_range *range) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index a35e51c..e93cf0a 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1670,7 +1670,12 @@ static long btrfs_fallocate(struct file *file, int mode, unlock_extent_cached(&BTRFS_I(inode)->io_tree, alloc_start, locked_end, &cached_state, GFP_NOFS); - btrfs_free_reserved_data_space(inode, alloc_end - alloc_start); + /* + * We failed to allocate some of our space, so free up part of our + * reservation. + */ + if (cur_offset < alloc_end) + btrfs_free_reserved_data_space(inode, alloc_e...
2011 Oct 04
68
[patch 00/65] Error handling patchset v3
Hi all - Here''s my current error handling patchset, against 3.1-rc8. Almost all of this patchset is preparing for actual error handling. Before we start in on that work, I''m trying to reduce the surface we need to worry about. It turns out that there is a ton of code that returns an error code but never actually reports an error. The patchset has grown to 65 patches. 46 of them