ops/sec)
/media/scratch/file5:
EXT: FILE-OFFSET BLOCK-RANGE TOTAL FLAGS
0: [0..127]:24576..24703 128 0x1
/media/scratch/file5:
EXT: FILE-OFFSET BLOCK-RANGE TOTAL FLAGS
0: [0..127]:24576..24703 128 0x1
which corrects the regression.
Edm
, thus causing a false
shared extent indication.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
---
fs/btrfs/backref.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index 4e89598..4a33448 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/bac
On 02/01/2018 01:12 AM, Anand Jain wrote:
>
>
> On 02/01/2018 01:26 PM, Edmund Nadolski wrote:
>> On 1/31/18 7:36 AM, Anand Jain wrote:
>>>
>>>
>>> On 01/31/2018 09:42 PM, Nikolay Borisov wrote:
>>>
>>>
>>>>>> So us
On 1/31/18 7:36 AM, Anand Jain wrote:
>
>
> On 01/31/2018 09:42 PM, Nikolay Borisov wrote:
>
>
So usually this should be functionality handled by the raid/san
controller I guess, > but given that btrfs is playing the role of a
controller here at what point are we drawing the
On 01/23/2018 12:36 AM, Lu Fengqi wrote:
> On Mon, Jan 22, 2018 at 08:35:43PM -0700, Edmund Nadolski wrote:
>> On 1/22/18 5:58 AM, Nikolay Borisov wrote:
>>>
>>>
>>> On 21.01.2018 21:08, Zygo Blaxell wrote:
>>>> This warning appears during exe
t; fs/btrfs/backref.c | 1 -
>> 1 file changed, 1 deletion(-)
>>
>> diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
>> index 7d0dc100a09a..57e8d2562ed5 100644
>> --- a/fs/btrfs/backref.c
>> +++ b/fs/btrfs/backref.c
>> @@ -1263,7 +1263,6 @@ static int find_
On 01/21/2018 08:34 PM, Lu Fengqi wrote:
> On Sun, Jan 21, 2018 at 02:08:58PM -0500, Zygo Blaxell wrote:
>> This warning appears during execution of the LOGICAL_INO ioctl and
>> appears to be spurious:
>>
>> [ cut here ]
>> WARNING: CPU: 3 PID: 18172 at
rief code comment about the i_count effect.
Reviewed-by: Edmund Nadolski <enadol...@suse.com>
> ---
> fs/btrfs/btrfs_inode.h | 1 -
> fs/btrfs/inode.c | 17 +++--
> 2 files changed, 3 insertions(+), 15 deletions(-)
>
> diff --git a/fs/btrfs/btrfs_inode.h
949, chg -0.02%
>
> No functional changes.
>
> Signed-off-by: Nikolay Borisov <nbori...@suse.com>
Reviewed-by: Edmund Nadolski <enadol...@suse.com>
> ---
> fs/btrfs/extent-tree.c | 14 +++---
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
>
On 11/30/2017 01:22 PM, Liu Bo wrote:
>>> If the underlying protocal doesn't support retry and there
>>> are some transient errors happening somewhere in our IO
>>> stack, we'd like to give an extra chance for IO.
> Anyway, this is for a corner case, not for everyone, I think I need
On 11/28/2017 12:22 PM, David Sterba wrote:
> On Tue, Nov 21, 2017 at 05:35:51PM -0700, Liu Bo wrote:
>> If the underlying protocal doesn't support retry and there are some
>> transient errors happening somewhere in our IO stack, we'd like to
>> give an extra chance for IO. Or sometimes you see
On 11/21/2017 12:59 AM, Nikolay Borisov wrote:
>
>
> On 20.11.2017 22:24, Edmund Nadolski wrote:
>> Improve code documentation by adding/expanding comments in
>> several places.
>>
>> Signed-off-by: Edmund Nadolski <enadol...@suse.com>
>>
t; code.
>
> Fixes: fb235dc06fa (btrfs: qgroup: Move half of the qgroup accounting ...)
> Cc: <sta...@vger.kernel.org> # v4.11+
> Signed-off-by: Jeff Mahoney <je...@suse.com>
Reviewed-by: Edmund Nadolski <enadol...@suse.com>
> ---
> fs/btrfs/ctree.c | 18 +++
Improve code documentation by adding/expanding comments in
several places.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
---
fs/btrfs/ctree.c| 31 +++---
fs/btrfs/ctree.h| 28 +++-
fs/btrfs/extent_map.h
This series adds a bit of code cleanup and some documentation in the
form of comments. No operational change.
Edmund Nadolski (3):
btrfs: btrfs_inode_log_parent should use defined inode_only values.
btrfs: update some code documentation
btrfs: remove dead code from btrfs_get_extent
fs
Due to new_inline logic, the create == 0 is always true at this
point in the code, so the create != 0 branch can be removed.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
---
fs/btrfs/inode.c | 22 +-
1 file changed, 1 insertion(+), 21 deletions(-)
diff --gi
Replace hardcoded numeric argument values for inode_only with the
constants defined for that use.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
---
fs/btrfs/tree-log.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
On 11/03/2017 11:20 AM, fdman...@kernel.org wrote:
> From: Filipe Manana
>
> This implements support the zero range operation of fallocate. For now
> at least it's as simple as possible while reusing most of the existing
> fallocate and hole punching infrastructure.
>
>
On 10/24/2017 02:39 AM, Qu Wenruo wrote:
> When modifying qgroup relationship, for qgroup which only owns exclusive
> extents, we will go through quick update path.
>
> In quick update path, we will just adding/removing exclusive and reference
> number.
>
> However we did the opposite for
On 10/24/2017 06:05 AM, Qu Wenruo wrote:
>
>
> On 2017年10月24日 19:07, Nikolay Borisov wrote:
>>
>>
>> On 24.10.2017 11:39, Qu Wenruo wrote:
>>> Introduce helpers to:
>>>
>>> 1) Get total reserved space
>>>For limit calculation
>>>
>>> 2) Increase reserved space for given type
>>> 2)
On 10/23/2017 12:58 AM, Nikolay Borisov wrote:
> btrfs_rm_dev_item calls several function under an activa transaction, however
^^
active
> it fails to abort it if an error happens. Fix this by adding explicit
>
just a few quick things for the changelog:
On 09/29/2017 01:43 PM, Josef Bacik wrote:
> Right now we do a lot of weird hoops around outstanding_extents in order
> to keep the extent count consistent. This is because we logically
> transfer the outstanding_extent count from the initial
On 10/06/2017 06:29 AM, David Sterba wrote:
> The use of sector_t is not necessry, it's just for a warning. Switch to
> u64 and rename the variable. The messages are adjusted as well.
>
> Signed-off-by: David Sterba
> ---
> fs/btrfs/scrub.c | 14 +++---
> 1 file
From: Jeff Mahoney
This patch adds a tracepoint event for prelim_ref insertion and
merging. For each, the ref being inserted or merged and the count
of tree nodes is issued.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/backref.c | 119
When called with a struct share_check, find_parent_nodes()
will detect a shared extent and immediately return with
BACKREF_SHARED_FOUND.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/bac
Repeating the same computation in multiple places is not
necessary.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 30 +-
1 file changed, 13 insertions(+), 17 deletions(-)
dif
From: Jeff Mahoney
This patch adds counters to each of the rbtrees so that we can tell
how large they are growing for a given workload. These counters
will be exported by tracepoints in the next patch.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/backref.c | 6
Since backref resolution is CPU-intensive, the cond_resched calls
should help alleviate soft lockup occurences.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 3 +++
1 file changed, 3 insertions(+)
diff --gi
the rbtrees higher in the stack so the lookups can be
shared across multiple calls to find_parent_nodes.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 441 ++---
1
' comments and the unused 'merge_mode' enum.
The other patches have no functional changes. Some have diff
context changes due to the above modifications.
Edmund Nadolski (6):
btrfs: btrfs_check_shared should manage its own transaction
btrfs: remove ref_tree implementation from backref.c
btrfs
On 07/11/2017 09:15 AM, David Sterba wrote:
> On Wed, Jun 28, 2017 at 09:57:00PM -0600, Edmund Nadolski wrote:
>> It's been known for a while that the use of multiple lists
>> that are periodically merged was an algorithmic problem within
>> btrfs. There are several
Repeating the same computation in multiple places is not
necessary.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 30 +-
1 file changed, 13 insertions(+), 17 deletions(-)
dif
When called with a struct share_check, find_parent_nodes()
will detect a shared extent and immediately return with
BACKREF_SHARED_FOUND.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/bac
the rbtrees higher in the stack so the lookups can be
shared across multiple calls to find_parent_nodes.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 437 ++---
Since backref resolution is CPU-intensive, the cond_resched calls
should help alleviate soft lockup occurences.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 3 +++
1 file changed, 3 insertions(+)
diff --gi
From: Jeff Mahoney
This patch adds counters to each of the rbtrees so that we can tell
how large they are growing for a given workload. These counters
will be exported by tracepoints in the next patch.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/backref.c | 6
From: Jeff Mahoney
This patch adds a tracepoint event for prelim_ref insertion and
merging. For each, the ref being inserted or merged and the count
of tree nodes is issued.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/backref.c | 117
From: Jeff Mahoney
We typically use __ to indicate a helper routine that shouldn't be
called directly without understanding the proper context required
to do so. We use static functions to indicate that a function is
private to a particular C file. The backref code uses static
From: Jeff Mahoney
This constifies a few buffers used in the backref code.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/backref.c | 29 -
1 file changed, 16 insertions(+), 13 deletions(-)
diff --git a/fs/btrfs/backref.c
ete revert of the
above commit is not desirable. This patch therefore removes the
ref_tree portion of the commit as above, however it does not remove
the transaction portion.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs
From: Jeff Mahoney
Tracepoint arguments are all read-only. If we mark the arguments
as const, we're able to keep or convert those arguments to const
where appropriate.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/async-thread.c | 6 +-
From: Jeff Mahoney
We have reader helpers for most of the on-disk structures that use
an extent_buffer and pointer as offset into the buffer that are
read-only. We should mark them as const and, in turn, allow consumers
of these interfaces to mark the buffers const as well.
No
to manage transactions individually.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 30 +++---
fs/btrfs/backref.h | 4 +---
fs/btrfs/extent_io.c | 22 +++---
3 files
WARN() with BUG_ON().
- Remove 'TODO' comments and the unused 'merge_mode' enum.
The other patches have no functional changes. Some have diff
context changes due to the above modifications.
Edmund Nadolski (6):
btrfs: btrfs_check_shared should manage its own transaction
btrfs: remove ref_tree
From: Jeff Mahoney
Replacing the double cast and ternary conditional with a helper makes
the code easier on the eyes.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/backref.c | 16 +++-
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git
From: Jeff Mahoney
This patch adds a tracepoint event for prelim_ref insertion and
merging. For each, the ref being inserted or merged and the count
of tree nodes is issued.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/backref.c | 117
When called with a struct share_check, find_parent_nodes()
will detect a shared extent and immediately return with
BACKREF_SHARED_FOUND.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/bac
the rbtrees higher in the stack so the lookups can be
shared across multiple calls to find_parent_nodes.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 415 ++---
From: Jeff Mahoney
Tracepoint arguments are all read-only. If we mark the arguments
as const, we're able to keep or convert those arguments to const
where appropriate.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/async-thread.c | 6 +-
Repeating the same computation in multiple places is not
necessary.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 30 +-
1 file changed, 13 insertions(+), 17 deletions(-)
dif
Since backref resolution is CPU-intensive, the cond_resched calls
should help alleviate soft lockup occurences.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 3 +++
1 file changed, 3 insertions(+)
diff --gi
From: Jeff Mahoney
We have reader helpers for most of the on-disk structures that use
an extent_buffer and pointer as offset into the buffer that are
read-only. We should mark them as const and, in turn, allow consumers
of these interfaces to mark the buffers const as well.
No
From: Jeff Mahoney
This patch adds counters to each of the rbtrees so that we can tell
how large they are growing for a given workload. These counters
will be exported by tracepoints in the next patch.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/backref.c | 6
From: Jeff Mahoney
Replacing the double cast and ternary conditional with a helper makes
the code easier on the eyes.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/backref.c | 16 +++-
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git
The BACKREF_FOUND_SHARED checking will be addressed in an upcoming
patch.
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 356 ++---
1 file changed, 8 insert
From: Jeff Mahoney
We typically use __ to indicate a helper routine that shouldn't be
called directly without understanding the proper context required
to do so. We use static functions to indicate that a function is
private to a particular C file. The backref code uses static
From: Jeff Mahoney
This constifies a few buffers used in the backref code.
Signed-off-by: Jeff Mahoney
---
fs/btrfs/backref.c | 29 -
1 file changed, 16 insertions(+), 13 deletions(-)
diff --git a/fs/btrfs/backref.c
Signed-off-by: Edmund Nadolski <enadol...@suse.com>
Signed-off-by: Jeff Mahoney <je...@suse.com>
---
fs/btrfs/backref.c | 30 +++---
fs/btrfs/backref.h | 4 +---
fs/btrfs/extent_io.c | 22 +++---
3 files changed, 23 insertions(+), 33 deleti
: 12 93203106022007
(Note, the current default value for nr_extents in btrfs/130 is
4096, which takes a very long time to complete.)
Edmund Nadolski (6):
btrfs: btrfs_check_shared should manage its own transaction
btrfs: remove ref_tree implementation from backref.c
btrfs
59 matches
Mail list logo