Re: [PATCH 3/3 v2] Btrfs: account for large extents with enospc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 12, 2015 at 11:16:51AM -0500, Josef Bacik wrote:
> --- a/fs/btrfs/ctree.h
> +++ b/fs/btrfs/ctree.h
> @@ -198,6 +198,14 @@ static int btrfs_csum_sizes[] = { 4, 0 };
>  
>  #define BTRFS_DIRTY_METADATA_THRESH	(32 * 1024 * 1024)
>  
> +#define BTRFS_MAX_EXTENT_SIZE (128 * 1024 * 1024)
> +#define BTRFS_MAX_EXTENT_BIT 27

#include <linux/ilog2.h>

#define BTRFS_MAX_EXTENT_SHIFT ilog2(BTRFS_MAX_EXTENT_SIZE)
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux