Re: Snapshot Cleaner not Working with inode_cache

2013-02-22 Thread Liu Bo
On Fri, Feb 22, 2013 at 11:16:22AM +0100, Norbert Scheibner wrote: > Am 20.02.2013, 02:14 Uhr, schrieb Liu Bo : > > >I think I know why inode_cache keeps us from freeing space, > >inode_cache adds > >a cache_inode in each btrfs root, and this cache_inode will be > >iput at the very > >last of stag

Re: Snapshot Cleaner not Working with inode_cache

2013-02-22 Thread Norbert Scheibner
Am 20.02.2013, 02:14 Uhr, schrieb Liu Bo : I think I know why inode_cache keeps us from freeing space, inode_cache adds a cache_inode in each btrfs root, and this cache_inode will be iput at the very last of stage during umount, ie. after we do cleanup work on old snapshot/subvols, where we

Re: Snapshot Cleaner not Working with inode_cache

2013-02-19 Thread Liu Bo
On Tue, Feb 19, 2013 at 02:22:27PM -0600, Mitch Harder wrote: > I've encountered an issue where the space from previously deleted > snapshots is not being freed up by the cleaner thread. > > I'm only encountering this issue when I mount with the inode_cache option. > > I've reproduced this on a 3

Snapshot Cleaner not Working with inode_cache

2013-02-19 Thread Mitch Harder
I've encountered an issue where the space from previously deleted snapshots is not being freed up by the cleaner thread. I'm only encountering this issue when I mount with the inode_cache option. I've reproduced this on a 3.7.9 kernel merged with the latest for-linus branch. No additional patche