From: David Sterba <dsterba@suse.cz>
To: Nikolay Borisov <nborisov@suse.com>
Cc: fdmanana@kernel.org, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 2/2] Btrfs: fix space leak after fallocate and zero range operations
Date: Thu, 18 Jan 2018 15:17:25 +0100 [thread overview]
Message-ID: <20180118141725.GI13726@twin.jikos.cz> (raw)
In-Reply-To: <3bbe79f2-1e33-0745-fd10-aaa1eba98cd0@suse.com>
On Thu, Jan 18, 2018 at 01:45:20PM +0200, Nikolay Borisov wrote:
> > [95795.015577] R10: 00000000000006b4 R11: 0000000000000246 R12: 00007fa6791bae64
> > [95795.016569] R13: 0000000000000000 R14: 0000563386706210 R15: 00007ffccf0ab160
> > [95795.017662] Code: 00 00 00 4c 8b a3 98 25 00 00 49 83 bc 24 60 ff ff ff 00 75 16 49 83 bc 24 68 ff ff ff 00 75 0b 49 83 bc 24 70 ff ff ff 00 74 16 <0f> ff 49 8d b4 24 18 ff ff ff 31 c9 31 d2 48 89 df e8 93 7a ff
> > [95795.020538] ---[ end trace e95877675c6ec00d ]---
> > [95795.021259] BTRFS info (device sdi): space_info 4 has 1072775168 free, is not full
> > [95795.022390] BTRFS info (device sdi): space_info total=1073741824, used=114688, pinned=0, reserved=0, may_use=786432, readonly=65536
> >
> > Fix this by ensuring the zero range operation does not call
> > btrfs_truncate_block() if the corresponding extent is an unwritten one
> > (it's pointless anyway, since reading from an unwritten extent yields
> > zeroes).
> >
> > Signed-off-by: Filipe Manana <fdmanana@suse.com>
Thanks.
> This fixes the leaks me and Josef has seen so:
>
> Tested-by: Nikolay Borisov <nborisov@suse.com>
Thanks.
Added to current misc-next (that's going to be added to 4.16 queue after
I let it pass through fstests).
prev parent reply other threads:[~2018-01-18 14:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-18 11:34 [PATCH 2/2] Btrfs: fix space leak after fallocate and zero range operations fdmanana
2018-01-18 11:45 ` Nikolay Borisov
2018-01-18 14:17 ` David Sterba [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180118141725.GI13726@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=fdmanana@kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=nborisov@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox