login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
23
Re: [PATCH 3/6] btrfs: free fully occupied bitmap in cluster
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Josef Bacik
Subject:
Re: [PATCH 3/6] btrfs: free fully occupied bitmap in cluster
Date: Monday, August 23, 2010 - 6:04 am
On Mon, Aug 23, 2010 at 09:23:16AM +0800, Li Zefan wrote:
quoted text
> If there's no more free space in a bitmap, we should free it, > otherwise seems it won't get freed until we free the block group. > > Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> > --- > fs/btrfs/free-space-cache.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c > index 017fd55..631e14f 100644 > --- a/fs/btrfs/free-space-cache.c > +++ b/fs/btrfs/free-space-cache.c > @@ -1035,6 +1035,8 @@ static u64 btrfs_alloc_from_bitmap(struct btrfs_block_group_cache *block_group, > > ret = search_start; > bitmap_clear_bits(block_group, entry, ret, bytes); > + if (entry->bytes == 0) > + free_bitmap(block_group, entry); > out: > spin_unlock(&cluster->lock); > spin_unlock(&block_group->tree_lock); > -- > 1.7.0.1 >
Oops, good catch Reviewed-by: Josef Bacik <josef@redhat.com> Thanks, Josef --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/6] btrfs: some bug fixes for free space cache
, Li Zefan
, (Sun Aug 22, 6:22 pm)
[PATCH 1/6] btrfs: fix threshold calculation for block gro ...
, Li Zefan
, (Sun Aug 22, 6:22 pm)
[PATCH 2/6] btrfs: add helper function free_bitmap()
, Li Zefan
, (Sun Aug 22, 6:23 pm)
[PATCH 3/6] btrfs: free fully occupied bitmap in cluster
, Li Zefan
, (Sun Aug 22, 6:23 pm)
[PATCH 4/6] btrfs: update stats when allocating from a cluster
, Li Zefan
, (Sun Aug 22, 6:23 pm)
[PATCH 5/6] btrfs: add a helper try_merge_free_space()
, Li Zefan
, (Sun Aug 22, 6:23 pm)
[PATCH 6/6] btrfs: check mergeable free space when removin ...
, Li Zefan
, (Sun Aug 22, 6:24 pm)
Re: [PATCH 1/6] btrfs: fix threshold calculation for block ...
, Josef Bacik
, (Mon Aug 23, 6:02 am)
Re: [PATCH 2/6] btrfs: add helper function free_bitmap()
, Josef Bacik
, (Mon Aug 23, 6:03 am)
Re: [PATCH 3/6] btrfs: free fully occupied bitmap in cluster
, Josef Bacik
, (Mon Aug 23, 6:04 am)
Re: [PATCH 4/6] btrfs: update stats when allocating from a ...
, Josef Bacik
, (Mon Aug 23, 6:09 am)
Re: [PATCH 6/6] btrfs: check mergeable free space when rem ...
, Josef Bacik
, (Mon Aug 23, 6:15 am)
Re: [PATCH 5/6] btrfs: add a helper try_merge_free_space()
, Josef Bacik
, (Mon Aug 23, 6:15 am)
Re: [PATCH 4/6] btrfs: update stats when allocating from a ...
, Li Zefan
, (Mon Aug 23, 5:50 pm)
Re: [PATCH 6/6] btrfs: check mergeable free space when rem ...
, Li Zefan
, (Mon Aug 23, 6:04 pm)
Re: [PATCH 4/6] btrfs: update stats when allocating from a ...
, Josef Bacik
, (Mon Aug 23, 7:50 pm)
Re: [PATCH 6/6] btrfs: check mergeable free space when rem ...
, Josef Bacik
, (Mon Aug 23, 7:58 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Gautham R Shenoy
[PATCH 1/8] Enhance process freezer interface for usage beyond software suspend
Jeffrey V. Merkey
Re: Versioning file system
James Bottomley
Re: [PATCH -mm 1/2] scsi: remove dma_is_consistent usage in 53c700
David Miller
Re: NO_HZ: timer interrupt stuck
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Miles Bader
Re: way to automatically add untracked files?
Harvey Harrison
Re: [SoC RFC] libsvn-fs-git: A git backend for the subversion filesystem
Alex Riesen
Re: git exclude patterns for directory
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
netfilter: nf_conntrack_sip: add T.38 FAX support
Linux Kernel Mailing List
drivers/acpi: use kasprintf
linux-netdev
:
Timo Teräs
ip xfrm policy semantics
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
frantisek holop
Re: mount ffs as msdos, system hangs
Colocation donated by:
Syndicate