completely revised ioctl for notification of when all space from a snapshot delete is freed and similar

2011-04-14 Thread David Nicol
I have started rewriting the ioctl#21 patch using a less hacky architecture, including defining a new kind of structure that explicitly organizes information common to delayed/deferred systems, (the list of work pieces, and an atomic for counting active worker threads) and replacing the lists of wo

[PATCH V8 2/8] fs: add field to superblock to support cleancache

2011-04-14 Thread Dan Magenheimer
[PATCH V8 2/8] fs: add field to superblock to support cleancache This second patch of eight in this cleancache series adds a field to the generic superblock to squirrel away a pool identifier that is dynamically provided by cleancache-enabled filesystems at mount time to uniquely identify files an

[PATCH V8 0/8] Cleancache

2011-04-14 Thread Dan Magenheimer
[PATCH V8 0/8] Cleancache This is a courtesy repost to lkml and linux-mm. As of 2.6.39-rc1, Linus has said that he will review cleancache but hasn't yet, so I am updating the patchset to the very latest bits. The patchset can be pulled from: git://git.kernel.org/pub/scm/linux/kernel/git/djm/tme

[PATCH V8 1/8] mm/fs: cleancache documentation

2011-04-14 Thread Dan Magenheimer
[PATCH V8 1/8] mm/fs: cleancache documentation This patchset introduces cleancache, an optional new feature exposed by the VFS layer that potentially dramatically increases page cache effectiveness for many workloads in many environments at a negligible cost. It does this by providing an interfac

[PATCH V8 4/8] mm/fs: add hooks to support cleancache

2011-04-14 Thread Dan Magenheimer
[PATCH V8 4/8] mm/fs: add hooks to support cleancache This fourth patch of eight in this cleancache series provides the core hooks in VFS for: initializing cleancache per filesystem; capturing clean pages reclaimed by page cache; attempting to get pages from cleancache before filesystem read; and

[PATCH V8 3/8] mm: cleancache core ops functions and config

2011-04-14 Thread Dan Magenheimer
[PATCH V8 3/8] mm: cleancache core ops functions and config This third patch of eight in this cleancache series provides the core code for cleancache that interfaces between the hooks in VFS and individual filesystems and a cleancache backend. It also includes build and config patches. Two new f

[PATCH V8 6/8] btrfs: add cleancache support

2011-04-14 Thread Dan Magenheimer
[PATCH V8 6/8] btrfs: add cleancache support This sixth patch of eight in this cleancache series "opts-in" cleancache for btrfs. Filesystems must explicitly enable cleancache by calling cleancache_init_fs anytime an instance of the filesystem is mounted. Btrfs uses its own readpage which must be

[PATCH V8 5/8] ext3: add cleancache support

2011-04-14 Thread Dan Magenheimer
[PATCH V8 5/8] ext3: add cleancache support This fifth patch of eight in this cleancache series "opts-in" cleancache for ext3. Filesystems must explicitly enable cleancache by calling cleancache_init_fs anytime an instance of the filesystem is mounted. For ext3, all other cleancache hooks are in

[PATCH V8 7/8] ext4: add cleancache support

2011-04-14 Thread Dan Magenheimer
[PATCH V8 7/8] ext4: add cleancache support This seventh patch of eight in this cleancache series "opts-in" cleancache for ext4. Filesystems must explicitly enable cleancache by calling cleancache_init_fs anytime an instance of the filesystem is mounted. For ext4, all other cleancache hooks are i

[PATCH] xen: cleancache shim to Xen Transcendent Memory

2011-04-14 Thread Dan Magenheimer
[PATCH] xen: cleancache shim to Xen Transcendent Memory This patch provides a shim between the kernel-internal cleancache API (see Documentation/mm/cleancache.txt) and the Xen Transcendent Memory ABI (see http://oss.oracle.com/projects/tmem). Xen tmem provides "hypervisor RAM" as an ephemeral pag

[PATCH V8 8/8] ocfs2: add cleancache support

2011-04-14 Thread Dan Magenheimer
[PATCH V8 8/8] ocfs2: add cleancache support This eighth patch of eight in this cleancache series "opts-in" cleancache for ocfs2. Clustered filesystems must explicitly enable cleancache by calling cleancache_init_shared_fs anytime an instance of the filesystem is mounted. Ocfs2 is currently the

Re: [PATCH V8 4/8] mm/fs: add hooks to support cleancache

2011-04-14 Thread Minchan Kim
Hi Dan, On Fri, Apr 15, 2011 at 6:17 AM, Dan Magenheimer wrote: > [PATCH V8 4/8] mm/fs: add hooks to support cleancache > > This fourth patch of eight in this cleancache series provides the > core hooks in VFS for: initializing cleancache per filesystem; > capturing clean pages reclaimed by page

[PATCH 1/3] fs: remove FS_COW_FL

2011-04-14 Thread Li Zefan
FS_COW_FL and FS_NOCOW_FL were newly introduced to control per file COW in btrfs, but FS_NOCOW_FL is sufficient. The fact is we don't have corresponding BTRFS_INODE_COW flag. COW is default, and FS_NOCOW_FL can be used to switch off COW for a single file. If we mount btrfs with nodatacow, a newl

[PATCH 3/3] Btrfs: fix FS_IOC_SETFLAGS ioctl

2011-04-14 Thread Li Zefan
Steps to reproduce the bug: - Call FS_IOC_SETLFAGS ioctl with flags=FS_COMPR_FL - Call FS_IOC_SETFLAGS ioctl with flags=0 - Call FS_IOC_GETFLAGS ioctl, and you'll see FS_COMPR_FL is still set! Signed-off-by: Li Zefan --- fs/btrfs/ioctl.c |2 ++ 1 files changed, 2 insertions(+), 0 dele

[PATCH 2/3] Btrfs: fix FS_IOC_GETFLAGS ioctl

2011-04-14 Thread Li Zefan
As we've added per file compression/cow support. Signed-off-by: Li Zefan --- fs/btrfs/ioctl.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 3240dd9..aeabf6b 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -81,6 +8