* [RFC PATCH] btrfs: fix free space calculation in dump_space_info()
@ 2016-06-20 10:47 Wang Xiaoguang
2016-06-20 18:09 ` Omar Sandoval
0 siblings, 1 reply; 4+ messages in thread
From: Wang Xiaoguang @ 2016-06-20 10:47 UTC (permalink / raw)
To: linux-fsdevel
Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
---
fs/btrfs/extent-tree.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index f3e6666..13a87fe 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -7736,8 +7736,8 @@ static void dump_space_info(struct btrfs_space_info *info, u64 bytes,
printk(KERN_INFO "BTRFS: space_info %llu has %llu free, is %sfull\n",
info->flags,
info->total_bytes - info->bytes_used - info->bytes_pinned -
- info->bytes_reserved - info->bytes_readonly,
- (info->full) ? "" : "not ");
+ info->bytes_reserved - info->bytes_readonly -
+ info->bytes_may_use, (info->full) ? "" : "not ");
printk(KERN_INFO "BTRFS: space_info total=%llu, used=%llu, pinned=%llu, "
"reserved=%llu, may_use=%llu, readonly=%llu\n",
info->total_bytes, info->bytes_used, info->bytes_pinned,
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [RFC PATCH] btrfs: fix free space calculation in dump_space_info()
2016-06-20 10:47 [RFC PATCH] btrfs: fix free space calculation in dump_space_info() Wang Xiaoguang
@ 2016-06-20 18:09 ` Omar Sandoval
2016-06-21 1:47 ` Wang Xiaoguang
0 siblings, 1 reply; 4+ messages in thread
From: Omar Sandoval @ 2016-06-20 18:09 UTC (permalink / raw)
To: Wang Xiaoguang; +Cc: linux-btrfs
On Mon, Jun 20, 2016 at 06:47:05PM +0800, Wang Xiaoguang wrote:
> Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
> ---
> fs/btrfs/extent-tree.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
> index f3e6666..13a87fe 100644
> --- a/fs/btrfs/extent-tree.c
> +++ b/fs/btrfs/extent-tree.c
> @@ -7736,8 +7736,8 @@ static void dump_space_info(struct btrfs_space_info *info, u64 bytes,
> printk(KERN_INFO "BTRFS: space_info %llu has %llu free, is %sfull\n",
> info->flags,
> info->total_bytes - info->bytes_used - info->bytes_pinned -
> - info->bytes_reserved - info->bytes_readonly,
> - (info->full) ? "" : "not ");
> + info->bytes_reserved - info->bytes_readonly -
> + info->bytes_may_use, (info->full) ? "" : "not ");
> printk(KERN_INFO "BTRFS: space_info total=%llu, used=%llu, pinned=%llu, "
> "reserved=%llu, may_use=%llu, readonly=%llu\n",
> info->total_bytes, info->bytes_used, info->bytes_pinned,
I think you meant to send this to linux-btrfs@vger.kernel.org
--
Omar
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH] btrfs: fix free space calculation in dump_space_info()
2016-06-20 18:09 ` Omar Sandoval
@ 2016-06-21 1:47 ` Wang Xiaoguang
2016-06-23 9:24 ` David Sterba
0 siblings, 1 reply; 4+ messages in thread
From: Wang Xiaoguang @ 2016-06-21 1:47 UTC (permalink / raw)
To: Omar Sandoval; +Cc: linux-btrfs
hello,
On 06/21/2016 02:09 AM, Omar Sandoval wrote:
> On Mon, Jun 20, 2016 at 06:47:05PM +0800, Wang Xiaoguang wrote:
>> Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
>> ---
>> fs/btrfs/extent-tree.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
>> index f3e6666..13a87fe 100644
>> --- a/fs/btrfs/extent-tree.c
>> +++ b/fs/btrfs/extent-tree.c
>> @@ -7736,8 +7736,8 @@ static void dump_space_info(struct btrfs_space_info *info, u64 bytes,
>> printk(KERN_INFO "BTRFS: space_info %llu has %llu free, is %sfull\n",
>> info->flags,
>> info->total_bytes - info->bytes_used - info->bytes_pinned -
>> - info->bytes_reserved - info->bytes_readonly,
>> - (info->full) ? "" : "not ");
>> + info->bytes_reserved - info->bytes_readonly -
>> + info->bytes_may_use, (info->full) ? "" : "not ");
>> printk(KERN_INFO "BTRFS: space_info total=%llu, used=%llu, pinned=%llu, "
>> "reserved=%llu, may_use=%llu, readonly=%llu\n",
>> info->total_bytes, info->bytes_used, info->bytes_pinned,
> I think you meant to send this to linux-btrfs@vger.kernel.org
Yes, should I resend it to linux-btrfs@vger.kernel.org again? thanks.
Regards,
Xiaoguang Wang
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH] btrfs: fix free space calculation in dump_space_info()
2016-06-21 1:47 ` Wang Xiaoguang
@ 2016-06-23 9:24 ` David Sterba
0 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2016-06-23 9:24 UTC (permalink / raw)
To: Wang Xiaoguang; +Cc: Omar Sandoval, linux-btrfs
On Tue, Jun 21, 2016 at 09:47:13AM +0800, Wang Xiaoguang wrote:
> hello,
>
> On 06/21/2016 02:09 AM, Omar Sandoval wrote:
> > On Mon, Jun 20, 2016 at 06:47:05PM +0800, Wang Xiaoguang wrote:
> >> Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
> >> ---
> >> fs/btrfs/extent-tree.c | 4 ++--
> >> 1 file changed, 2 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
> >> index f3e6666..13a87fe 100644
> >> --- a/fs/btrfs/extent-tree.c
> >> +++ b/fs/btrfs/extent-tree.c
> >> @@ -7736,8 +7736,8 @@ static void dump_space_info(struct btrfs_space_info *info, u64 bytes,
> >> printk(KERN_INFO "BTRFS: space_info %llu has %llu free, is %sfull\n",
> >> info->flags,
> >> info->total_bytes - info->bytes_used - info->bytes_pinned -
> >> - info->bytes_reserved - info->bytes_readonly,
> >> - (info->full) ? "" : "not ");
> >> + info->bytes_reserved - info->bytes_readonly -
> >> + info->bytes_may_use, (info->full) ? "" : "not ");
> >> printk(KERN_INFO "BTRFS: space_info total=%llu, used=%llu, pinned=%llu, "
> >> "reserved=%llu, may_use=%llu, readonly=%llu\n",
> >> info->total_bytes, info->bytes_used, info->bytes_pinned,
> > I think you meant to send this to linux-btrfs@vger.kernel.org
> Yes, should I resend it to linux-btrfs@vger.kernel.org again? thanks.
Yes please so we have it in the patchwork archive.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-06-23 9:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-20 10:47 [RFC PATCH] btrfs: fix free space calculation in dump_space_info() Wang Xiaoguang
2016-06-20 18:09 ` Omar Sandoval
2016-06-21 1:47 ` Wang Xiaoguang
2016-06-23 9:24 ` David Sterba
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.