[GIT PULL -mm] 00/17 Unionfs updates/fixes/cleanups

2008-02-16 Thread Erez Zadok
): Unionfs: embed a struct path into struct nameidata instead of nd dentrymnt David Howells (1): Unionfs: stop using iget() and read_inode() Erez Zadok (14): Unionfs: grab lower super_block references Unionfs: ensure consistent lower inodes types Unionfs: document behavior

[PATCH 01/17] Unionfs: grab lower super_block references

2008-02-16 Thread Erez Zadok
This prevents the lower super_block from being destroyed too early, when a lower file system is being unmounted with MNT_FORCE or MNT_DETACH. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/main.c |3 +++ fs/unionfs/super.c | 14 ++ fs/unionfs/union.h |2 +- 3

[PATCH 03/17] Unionfs: document behavior when the lower topology changes

2008-02-16 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- Documentation/filesystems/unionfs/concepts.txt | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/Documentation/filesystems/unionfs/concepts.txt b/Documentation/filesystems/unionfs/concepts.txt index bed69bd

[PATCH 07/17] Unionfs: follow_link locking fixes

2008-02-16 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/inode.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 8d939dc..6377533 100644 --- a/fs/unionfs/inode.c +++ b/fs/unionfs/inode.c @@ -820,7 +820,11 @@ static void

[PATCH 09/17] Unionfs: revalidation code cleanup and refactoring

2008-02-16 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dentry.c | 55 -- 1 files changed, 35 insertions(+), 20 deletions(-) diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index cd15243..afa2120 100644 --- a/fs/unionfs/dentry.c +++ b

[PATCH 02/17] Unionfs: ensure consistent lower inodes types

2008-02-16 Thread Erez Zadok
-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/lookup.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c index b9ee072..755158e 100644 --- a/fs/unionfs/lookup.c +++ b/fs/unionfs/lookup.c @@ -256,6 +256,19 @@ struct

[PATCH 04/17] Unionfs: uninline unionfs_copy_attr_times and unionfs_copy_attr_all

2008-02-16 Thread Erez Zadok
This reduces text size by about 6k. Cc: Hugh Dickins [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/fanout.h | 50 -- fs/unionfs/subr.c | 50 ++ fs/unionfs/union.h

[PATCH 16/17] Unionfs: use the new path_put

2008-02-16 Thread Erez Zadok
] Signed-off-by: Andreas Gruenbacher [EMAIL PROTECTED] Acked-by: Christoph Hellwig [EMAIL PROTECTED] Signed-off-by: Andrew Morton [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/main.c |2 +- fs/unionfs/super.c | 12 ++-- 2 files changed, 7 insertions

[PATCH 12/17] Unionfs: branch management/configuration fixes

2008-02-16 Thread Erez Zadok
Remove unnecessary calls to update branch m/ctimes, and use them only when needed. Update branch vfsmounts after operations that could cause a copyup. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/commonfops.c |9 +++-- fs/unionfs/copyup.c |3 ++- fs/unionfs

[PATCH 10/17] Unionfs: factor out revalidation routine

2008-02-16 Thread Erez Zadok
To be used by rest of revalidation code, as well a callers who already locked the child and parent dentry branch-configurations. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dentry.c | 87 +++--- fs/unionfs/union.h |3 ++ 2 files

[PATCH 08/17] Unionfs: improve debugging in copy_attr_times

2008-02-16 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/subr.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/subr.c b/fs/unionfs/subr.c index 68a6280..1a40f63 100644 --- a/fs/unionfs/subr.c +++ b/fs/unionfs/subr.c @@ -247,8 +247,14 @@ void

[PATCH 13/17] Unionfs: use dget_parent in revalidation code

2008-02-16 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dentry.c | 13 - 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index a956b94..f8f65e1 100644 --- a/fs/unionfs/dentry.c +++ b/fs/unionfs/dentry.c @@ -410,15 +410,10

[PATCH 05/17] Unionfs: initialize path_save variable

2008-02-16 Thread Erez Zadok
This is not strictly necessary, but it helps quiet a gcc-4.2 warning (a good optimizer may optimize this initialization away). Signed-off-by: Erez Zadok [EMAIL PROTECTED] Signed-off-by: Josef 'Jeff' Sipek [EMAIL PROTECTED] --- fs/unionfs/inode.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH 06/17] Unionfs: extend dentry branch configuration lock in open

2008-02-16 Thread Erez Zadok
Dentry branch configuration info node lock should extend to calls to copy_attr_times. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/commonfops.c | 14 -- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c

[PATCH 15/17] Unionfs: embed a struct path into struct nameidata instead of nd dentrymnt

2008-02-16 Thread Erez Zadok
From: Andrew Morton [EMAIL PROTECTED] Signed-off-by: Andrew Morton [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/inode.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 2e791fd

[PATCH 11/17] Unionfs: lock parents' branch configuration fixes

2008-02-16 Thread Erez Zadok
Ensure that we lock the branch configuration of parent and child dentries in operations which need it, and in the right order. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/commonfops.c | 31 +--- fs/unionfs/dentry.c | 26 +--- fs/unionfs

[PATCH 14/17] Unionfs: stop using iget() and read_inode()

2008-02-16 Thread Erez Zadok
when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] Signed-off-by: Andrew Morton [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/main.c | 11 +-- fs/unionfs/super.c | 19 ++- fs/unionfs/union.h

Re: unionfs_copy_attr_times oopses

2008-02-16 Thread Erez Zadok
In message [EMAIL PROTECTED], Hugh Dickins writes: Hi Erez, Aside from the occasional unionfs: new lower inode mtime messages on directories (which I've got into the habit of ignoring now), the only problem I'm still suffering with unionfs over tmpfs (not tested any other fs's below it

jffs2 console printk storm

2008-02-14 Thread Erez Zadok
Hi David, This has been a problem I've seen for a while. I've generated a jffs2 image of an empty directory (I don't recall the version of the jffs2 utils I've used to generate it). I mount the jffs2 image something like this: # cp jffs2-empty.img /tmp/fs.0 # losetup /dev/loop0 /tmp/fs.0 #

Re: [UNIONFS] 00/29 Unionfs and related patches pre-merge review (v2)

2008-02-02 Thread Erez Zadok
In message [EMAIL PROTECTED], Al Viro writes: On Sat, Jan 26, 2008 at 12:08:30AM -0500, Erez Zadok wrote: [concerns about lower directories moving around...] You are thinking about non-interesting case. _Files_ are not much of a problem. Directory tree is. The real problems with all

Re: unionfs_copy_attr_times oopses

2008-02-01 Thread Erez Zadok
In message [EMAIL PROTECTED], Hugh Dickins writes: Hi Erez, Aside from the occasional unionfs: new lower inode mtime messages on directories (which I've got into the habit of ignoring now), the only problem I'm still suffering with unionfs over tmpfs (not tested any other fs's below it

Re: [UNIONFS] 00/29 Unionfs and related patches pre-merge review (v2)

2008-01-25 Thread Erez Zadok
In message [EMAIL PROTECTED], Al Viro writes: After grep for locking-related things: * lock_parent(): who said that you won't get dentry moved before managing to grab i_mutex on parent? While we are at it, who said that you won't get dentry moved between fetching d_parent and doing

[PATCH 4/4] Unionfs: lock_rename related locking fixes

2008-01-25 Thread Erez Zadok
CC: Mike Halcrow [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/rename.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c index 9306a2b..5ab13f9 100644 --- a/fs/unionfs/rename.c +++ b

[PATCH 3/4] Unionfs: d_parent related locking fixes

2008-01-25 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/copyup.c |3 +-- fs/unionfs/union.h |4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/unionfs/copyup.c b/fs/unionfs/copyup.c index 8663224..9beac01 100644 --- a/fs/unionfs/copyup.c +++ b/fs/unionfs

[PATCH 1/4] Unionfs: use first writable branch (fix/cleanup)

2008-01-25 Thread Erez Zadok
Cleanup code in -create, -symlink, and -mknod: refactor common code into helper functions. Also, this allows writing to multiple branches again, which was broken by an earlier patch. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/inode.c | 395

[PATCH 2/4] Unionfs: remove unnecessary call to d_iput

2008-01-25 Thread Erez Zadok
This old code was to fix a bug which has long since been fixed in our copyup_permission and unionfs_d_iput. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/copyup.c | 13 - 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/fs/unionfs/copyup.c b/fs/unionfs

[GIT PULL -mm] 0/4 Unionfs updates/fixes/cleanups

2008-01-25 Thread Erez Zadok
/unionfs.git to receive the following: Erez Zadok (4): Unionfs: use first writable branch (fix/cleanup) Unionfs: remove unnecessary call to d_iput Unionfs: d_parent related locking fixes Unionfs: lock_rename related locking fixes copyup.c | 16 -- inode.c | 395

Re: [patch 01/26] mount options: add documentation

2008-01-24 Thread Erez Zadok
In message [EMAIL PROTECTED], Miklos Szeredi writes: From: Miklos Szeredi [EMAIL PROTECTED] This series addresses the problem of showing mount options in /proc/mounts. Several filesystems which use mount options, have not implemented a .show_options superblock operation. Several others

Re: [UNIONFS] 00/29 Unionfs and related patches pre-merge review (v2)

2008-01-16 Thread Erez Zadok
In message [EMAIL PROTECTED], Michael Halcrow writes: On Thu, Jan 10, 2008 at 10:57:46AM -0500, Erez Zadok wrote: [...] Would the inclusion of Unionfs in mainline really slow down or damage the union mount effort? If not, then I think the pragmatic approach would be to make it available

Re: [UNIONFS] 00/29 Unionfs and related patches pre-merge review (v2)

2008-01-16 Thread Erez Zadok
In message [EMAIL PROTECTED], Al Viro writes: After grep for locking-related things: [...] Thanks. I'll start looking at these issues asap. Erez. - To unsubscribe from this list: send the line unsubscribe linux-fsdevel in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PATCH 21/29] Unionfs: extended attributes operations

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/xattr.c | 153 1 files changed, 153 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/xattr.c diff --git a/fs/unionfs/xattr.c b/fs/unionfs/xattr.c new file mode 100644

[PATCH 07/29] Unionfs: common file copyup/revalidation operations

2008-01-10 Thread Erez Zadok
Includes open, ioctl, and flush operations. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/commonfops.c | 835 +++ 1 files changed, 835 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/commonfops.c diff --git a/fs/unionfs

[PATCH 11/29] Unionfs: lower-level lookup routines

2008-01-10 Thread Erez Zadok
Includes lower nameidata support routines. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/lookup.c | 652 +++ 1 files changed, 652 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/lookup.c diff --git a/fs/unionfs/lookup.c

[PATCH 06/29] Unionfs: main header file

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/union.h | 602 1 files changed, 602 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/union.h diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h new file mode 100644

[PATCH 20/29] Unionfs: super_block operations

2008-01-10 Thread Erez Zadok
Includes read_inode, delete_inode, put_super, statfs, remount_fs (which supports branch-management ops), clear_inode, alloc_inode, destroy_inode, write_inode, umount_begin, and show_options. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/super.c | 1025

[PATCH 13/29] Unionfs: directory reading file operations

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dirfops.c | 290 ++ 1 files changed, 290 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/dirfops.c diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c new file mode

[PATCH 24/29] Unionfs: debugging infrastructure

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/debug.c | 533 1 files changed, 533 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/debug.c diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c new file mode 100644

[PATCH 12/29] Unionfs: rename method and helpers

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/rename.c | 531 +++ 1 files changed, 531 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/rename.c diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c new file mode 100644

[PATCH 28/29] VFS: export release_open_intent symbol

2008-01-10 Thread Erez Zadok
Needed to release the resources of the lower nameidata structures that we create and pass to lower file systems (e.g., when calling vfs_create). Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/namei.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/namei.c b/fs

[PATCH 25/29] Unionfs file system magic number

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- include/linux/magic.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/magic.h b/include/linux/magic.h index 1fa0c2c..67043ed 100644 --- a/include/linux/magic.h +++ b/include/linux/magic.h @@ -35,6 +35,8

[PATCH 22/29] Unionfs: async I/O queue

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/sioq.c | 119 + fs/unionfs/sioq.h | 92 + 2 files changed, 211 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/sioq.c create mode

[PATCH 15/29] Unionfs: readdir state helpers

2008-01-10 Thread Erez Zadok
Includes duplicate name elimination and whiteout-handling code. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/rdstate.c | 285 ++ 1 files changed, 285 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/rdstate.c diff --git

[PATCH 29/29] Put Unionfs and eCryptfs under one layered filesystems menu

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/Kconfig | 53 + 1 files changed, 41 insertions(+), 12 deletions(-) diff --git a/fs/Kconfig b/fs/Kconfig index 487236c..55a78b7 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -1041,6 +1041,47

[PATCH 09/29] Unionfs: lower-level copyup routines

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/copyup.c | 899 +++ 1 files changed, 899 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/copyup.c diff --git a/fs/unionfs/copyup.c b/fs/unionfs/copyup.c new file mode 100644

[PATCH 02/29] VFS/eCryptfs: use simplified fs_stack API to fsstack_copy_attr_all

2008-01-10 Thread Erez Zadok
Acked-by: Mike Halcrow [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/ecryptfs/dentry.c |2 +- fs/ecryptfs/inode.c |6 +++--- fs/ecryptfs/main.c |2 +- fs/stack.c | 38 -- include/linux/fs_stack.h

[UNIONFS] 00/29 Unionfs and related patches pre-merge review (v2)

2008-01-10 Thread Erez Zadok
support stackable file systems. Lastly, shortlog and diffstats: Erez Zadok (29): Unionfs: documentation VFS/eCryptfs: use simplified fs_stack API to fsstack_copy_attr_all Makefile: hook to compile unionfs Unionfs: main Makefile Unionfs: fanout header definitions

[PATCH 27/29] VFS path get/put ops used by Unionfs

2008-01-10 Thread Erez Zadok
Note: this will become obsolete once similar patches, now in -mm, make it to mainline. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- include/linux/namei.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/linux/namei.h b/include/linux/namei.h index

[PATCH 17/29] Unionfs: unlink/rmdir operations

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/unlink.c | 251 +++ 1 files changed, 251 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/unlink.c diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c new file mode 100644

[PATCH 01/29] Unionfs: documentation

2008-01-10 Thread Erez Zadok
Includes index files, MAINTAINERS, and documentation on general concepts, usage, issues, and renaming operations. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- Documentation/filesystems/00-INDEX |2 + Documentation/filesystems/unionfs/00-INDEX | 10 + Documentation

[PATCH 03/29] Makefile: hook to compile unionfs

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/Makefile |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/Makefile b/fs/Makefile index 500cf15..e202288 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -118,3 +118,4 @@ obj-$(CONFIG_HPPFS) += hppfs/ obj

[PATCH 08/29] Unionfs: basic file operations

2008-01-10 Thread Erez Zadok
Includes read, write, mmap, fsync, and fasync. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/file.c | 184 + 1 files changed, 184 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/file.c diff --git a/fs/unionfs/file.c

[PATCH 04/29] Unionfs: main Makefile

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/Makefile | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/Makefile diff --git a/fs/unionfs/Makefile b/fs/unionfs/Makefile new file mode 100644 index 000..17ca4a7 --- /dev/null

[PATCH 23/29] Unionfs: miscellaneous helper routines

2008-01-10 Thread Erez Zadok
Mostly related to whiteouts. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/subr.c | 242 + 1 files changed, 242 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/subr.c diff --git a/fs/unionfs/subr.c b/fs/unionfs

[PATCH 05/29] Unionfs: fanout header definitions

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/fanout.h | 366 +++ 1 files changed, 366 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/fanout.h diff --git a/fs/unionfs/fanout.h b/fs/unionfs/fanout.h new file mode 100644

[PATCH 18/29] Unionfs: address-space operations

2008-01-10 Thread Erez Zadok
Includes writepage, writepages, readpage, prepare_write, and commit_write. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/mmap.c | 343 + 1 files changed, 343 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/mmap.c

[PATCH 16/29] Unionfs: inode operations

2008-01-10 Thread Erez Zadok
Includes create, lookup, link, symlink, mkdir, mknod, readlink, follow_link, put_link, permission, and setattr. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/inode.c | 1174 1 files changed, 1174 insertions(+), 0 deletions

[PATCH 14/29] Unionfs: readdir helper functions

2008-01-10 Thread Erez Zadok
Includes whiteout handling for directories. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dirhelper.c | 267 1 files changed, 267 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/dirhelper.c diff --git a/fs/unionfs

[PATCH 19/29] Unionfs: mount-time and stacking-interposition functions

2008-01-10 Thread Erez Zadok
Includes read_super and module-linkage routines. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/main.c | 794 + 1 files changed, 794 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/main.c diff --git a/fs/unionfs

[PATCH 26/29] Unionfs: common header file for user-land utilities and kernel

2008-01-10 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- include/linux/union_fs.h | 24 1 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 include/linux/union_fs.h diff --git a/include/linux/union_fs.h b/include/linux/union_fs.h new file mode 100644 index

[GIT PULL -mm] 0/4 Unionfs updates/fixes/cleanups

2008-01-09 Thread Erez Zadok
the following: Erez Zadok (4): Unionfs: merged several printk KERN_CONT together into one pr_debug Unionfs: mmap fixes Unionfs: branch-management related locking fixes Unionfs: ensure we have lower dentries in d_iput commonfops.c |6 ++ debug.c | 51

[PATCH 3/4] Unionfs: branch-management related locking fixes

2008-01-09 Thread Erez Zadok
Add necessary locking to dentry/inode branch-configuration, so we get consistent values during branch-management actions. In d_revalidate_chain, -permission, and -create, also lock parent dentry. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/commonfops.c |6 ++ fs/unionfs

[PATCH 2/4] Unionfs: mmap fixes

2008-01-09 Thread Erez Zadok
Ensure we have lower inodes in prepare/commit_write. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/mmap.c | 26 +- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/fs/unionfs/mmap.c b/fs/unionfs/mmap.c index a0e654b..ad770ac 100644 --- a/fs

[PATCH 4/4] Unionfs: ensure we have lower dentries in d_iput

2008-01-09 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dentry.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index d969640..cd15243 100644 --- a/fs/unionfs/dentry.c +++ b/fs/unionfs/dentry.c @@ -507,9 +507,10 @@ static

[PATCH 1/4] Unionfs: merged several printk KERN_CONT together into one pr_debug

2008-01-09 Thread Erez Zadok
CC: Joe Perches [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/debug.c | 51 +-- 1 files changed, 25 insertions(+), 26 deletions(-) diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c index 5f1d887..d154c32 100644

Re: [PATCH 1/3] Unionfs: use printk KERN_CONT for debugging messages

2008-01-03 Thread Erez Zadok
In message [EMAIL PROTECTED], Joe Perches writes: On Thu, 2008-01-03 at 00:57 -0500, Erez Zadok wrote: I think printks should be single statements and KERN_CONT should be used as sparingly as possible. [...] KERN_CONT is documented as not being SMP safe, but I figured it was harmless for just

[PATCH 1/3] Unionfs: use printk KERN_CONT for debugging messages

2008-01-02 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/debug.c | 50 ++ 1 files changed, 26 insertions(+), 24 deletions(-) diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c index c2b8b58..5f1d887 100644 --- a/fs/unionfs/debug.c +++ b/fs

[GIT PULL -mm] 0/3 Unionfs updates/fixes/cleanups

2008-01-02 Thread Erez Zadok
-ported unionfs code. Please pull from the 'master' branch of git://git.kernel.org/pub/scm/linux/kernel/git/ezk/unionfs.git to receive the following: Erez Zadok (3): Unionfs: use printk KERN_CONT for debugging messages Unionfs: locking fixes Unionfs: use VFS helpers to manipulate

[PATCH 2/3] Unionfs: locking fixes

2008-01-02 Thread Erez Zadok
Lock parent dentries during revalidation. Reduce total number of lockdep classes used. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dentry.c | 13 - fs/unionfs/fanout.h |3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/dentry.c b

[PATCH 3/3] Unionfs: use VFS helpers to manipulate i_nlink

2008-01-02 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/unlink.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c index a1c82b6..1e370a1 100644 --- a/fs/unionfs/unlink.c +++ b/fs/unionfs/unlink.c @@ -79,7 +79,7 @@ static int

[GIT PULL -mm] 00/30 Unionfs+fsstack updates/fixes/cleanups

2007-12-28 Thread Erez Zadok
/kernel/git/ezk/unionfs.git to receive the following: Erez Zadok (27): VFS/fs_stack: drop cast on inode passed to i_size_read Unionfs: use locking around i_size_write in 32-bit systems Unionfs: clarify usage.txt read/write behavior Unionfs: interpose cleanup and fix

[PATCH 13/30] Unionfs: prevent deadlock in cache coherency

2007-12-28 Thread Erez Zadok
to be gentler and just invalidate_mapping_pages. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dentry.c | 32 +++- 1 files changed, 11 insertions(+), 21 deletions(-) diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index c7b6a7c..68c07ba 100644

[PATCH 03/30] Unionfs: use locking around i_size_write in 32-bit systems

2007-12-28 Thread Erez Zadok
CC: Hugh Dickins [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/super.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index 0ff9a9e..ed3eb04 100644 --- a/fs/unionfs/super.c +++ b/fs/unionfs

[PATCH 12/30] Unionfs: remove custom read/write methods

2007-12-28 Thread Erez Zadok
and do_sync_write. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/file.c | 46 ++ 1 files changed, 2 insertions(+), 44 deletions(-) diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c index c922173..94784c3 100644 --- a/fs/unionfs/file.c +++ b/fs

[PATCH 21/30] Unionfs: minor code rearrangement in rename

2007-12-28 Thread Erez Zadok
To avoid too much code nesting. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/rename.c | 83 -- 1 files changed, 40 insertions(+), 43 deletions(-) diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c index 824c285..1019d47 100644

[PATCH 19/30] Unionfs: prevent false lockdep warnings in stacking

2007-12-28 Thread Erez Zadok
ordering (upper then lower) and consider upper vs. lower locks to be in different classes. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- Documentation/filesystems/unionfs/issues.txt | 10 +++--- fs/unionfs/copyup.c |3 +++ fs/unionfs/inode.c

[PATCH 07/30] Unionfs: create new special files only in first branch

2007-12-28 Thread Erez Zadok
. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/inode.c | 174 +++ 1 files changed, 92 insertions(+), 82 deletions(-) diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 63ff3d3..8076d0b 100644 --- a/fs/unionfs/inode.c +++ b/fs

[PATCH 23/30] Unionfs: set our superblock a/m/ctime granularity

2007-12-28 Thread Erez Zadok
Set it to 1 ns, because we could be stacked on top of file systems with such granularity. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/main.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c index 92f0e9d..23c18f7

[PATCH 30/30] Unionfs: don't check parent dentries

2007-12-28 Thread Erez Zadok
Parent dentries may not be locked and may change, so don't check them. But do check parent inodes if they are passed to the method. Also, ensure the checks are done only if no error occurred. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/commonfops.c |1 - fs/unionfs/file.c

[PATCH 09/30] Unionfs: release special files on copyup

2007-12-28 Thread Erez Zadok
If we copyup a special file (char, block, etc.), then dput the source object. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/copyup.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/unionfs/copyup.c b/fs/unionfs/copyup.c index 3fe4865..f48209f 100644

[PATCH 25/30] Unionfs: minor cleanup in check_empty

2007-12-28 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dirhelper.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/fs/unionfs/dirhelper.c b/fs/unionfs/dirhelper.c index b40090a..4b73bb6 100644 --- a/fs/unionfs/dirhelper.c +++ b/fs/unionfs/dirhelper.c @@ -182,6

[PATCH 05/30] Unionfs: interpose cleanup and fix for spliced dentries

2007-12-28 Thread Erez Zadok
Fix unionfs_interpose to fill lower inode info when d_splice_alias returns NULL. Also cleanup impossible case (d_splice_alias doesn't return ERR_PTR). Signed-off-by: Rachita Kothiyal [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/main.c | 10 +++--- 1 files

[PATCH 24/30] Unionfs: update inode times after a successful open

2007-12-28 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/commonfops.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 4077907..b8357a7 100644 --- a/fs/unionfs/commonfops.c +++ b/fs/unionfs/commonfops.c

[PATCH 16/30] Unionfs: remove unnecessary lock in read_inode

2007-12-28 Thread Erez Zadok
Our read_inode doesn't need to grab the superblock rwsem because there no chance it could be affected by branch management. But our read_inode was called from other places which did grab need to grab that rwsem, and lockdep complained. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs

[PATCH 10/30] Unionfs: mmap fixes

2007-12-28 Thread Erez Zadok
prepare_write. Handle if no lower inodes in writepage. Signed-off-by: Hugh Dickins [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/mmap.c | 29 + 1 files changed, 9 insertions(+), 20 deletions(-) diff --git a/fs/unionfs/mmap.c b/fs/unionfs/mmap.c

[PATCH 17/30] Unionfs: remove unnecessary locking in follow-link

2007-12-28 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/inode.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 37258c8..7ec9c1b 100644 --- a/fs/unionfs/inode.c +++ b/fs/unionfs/inode.c @@ -851,7 +851,8 @@ out: * nor

[PATCH 06/30] Unionfs: initialize inode times for reused inodes

2007-12-28 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/super.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index ed3eb04..c474c86 100644 --- a/fs/unionfs/super.c +++ b/fs/unionfs/super.c @@ -55,6 +55,14 @@ static void

[PATCH 26/30] Unionfs: initialize namelist variable in rename

2007-12-28 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/rename.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c index 1019d47..9306a2b 100644 --- a/fs/unionfs/rename.c +++ b/fs/unionfs/rename.c @@ -462,7 +462,7 @@ int

[PATCH 27/30] Unionfs: cleanup lower inodes after successful unlink

2007-12-28 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/unlink.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c index 1e81494..a1c82b6 100644 --- a/fs/unionfs/unlink.c +++ b/fs/unionfs/unlink.c @@ -91,7 +91,9 @@ out

[PATCH 29/30] Unionfs: implement d_iput method

2007-12-28 Thread Erez Zadok
This is needed to drop lower objects early enough, under certain conditions, so the lower objects don't stay behind until umount(). [LTP testing] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dentry.c | 42 ++ 1 files changed, 42 insertions

[PATCH 15/30] Unionfs: remove unnecessary lock when deleting whiteouts

2007-12-28 Thread Erez Zadok
Lockdep complained, because we eventually call vfs_unlink which'd grab the necessary locks. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dirhelper.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/dirhelper.c b/fs/unionfs/dirhelper.c index

[PATCH 11/30] Unionfs: restructure unionfs_setattr and fix truncation order

2007-12-28 Thread Erez Zadok
when expanding, in the case when the upper level's s_maxbytes is more limiting than the lower level's. Signed-off-by: Hugh Dickins [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/inode.c | 97 ++- 1 files changed, 49

[PATCH 28/30] Unionfs: don't check dentry on error

2007-12-28 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/inode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index df6138a..740d364 100644 --- a/fs/unionfs/inode.c +++ b/fs/unionfs/inode.c @@ -158,9 +158,9 @@ out

[PATCH 20/30] Unionfs: implement lockdep classes

2007-12-28 Thread Erez Zadok
Lockdep fixes. Support locking order/classes (e.g., parent - child - whiteout). Remove locking from create_parents: it's enough to just dget the dentries in question. Move parent locking to from lookup_backend to caller, unionfs_lookup. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs

[PATCH 14/30] Unionfs: remove unnecessary conditional inode lock

2007-12-28 Thread Erez Zadok
This was intended to protect the inode during branch management, but that is now done through our superblock rwsem. Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/dentry.c | 13 - 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/fs/unionfs/dentry.c b/fs

[PATCH 08/30] Unionfs: create new symlinks only in first branch

2007-12-28 Thread Erez Zadok
-by: Erez Zadok [EMAIL PROTECTED] --- fs/unionfs/inode.c | 210 +++ 1 files changed, 95 insertions(+), 115 deletions(-) diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 8076d0b..78cdfa2 100644 --- a/fs/unionfs/inode.c +++ b/fs/unionfs

[PATCH 04/30] Unionfs: clarify usage.txt read/write behavior

2007-12-28 Thread Erez Zadok
CC: Michael Tokarev [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- Documentation/filesystems/unionfs/concepts.txt | 20 +--- Documentation/filesystems/unionfs/issues.txt |2 +- Documentation/filesystems/unionfs/usage.txt| 13 - 3 files

[PATCH 02/30] VFS/fs_stack: use locking around i_size_write in 32-bit systems

2007-12-28 Thread Erez Zadok
to access the inode's size. CC: Mike Halcrow [EMAIL PROTECTED] Signed-off-by: Hugh Dickins [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/stack.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/fs/stack.c b/fs/stack.c index 7913fe5..4336f2b

[PATCH 01/30] VFS/fs_stack: drop cast on inode passed to i_size_read

2007-12-28 Thread Erez Zadok
i_size_read() takes 'const struct inode *' already, as of 2.6.20. CC: Mike Halcrow [EMAIL PROTECTED] Signed-off-by: Jan Engelhardt [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/stack.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/stack.c b

[PATCH 1/2] Unionfs: avoid using drop_pagecache_sb in remount

2007-12-14 Thread Erez Zadok
pages invalidation shouldn't add too much overhead. CC: Nick Piggin [EMAIL PROTECTED] Signed-off-by: Erez Zadok [EMAIL PROTECTED] --- fs/drop_caches.c|4 +--- fs/unionfs/dentry.c | 11 +++ fs/unionfs/super.c | 34 -- fs/unionfs/union.h |1

[GIT PULL -mm] 0/2 Unionfs updates/fixes/cleanups

2007-12-14 Thread Erez Zadok
fs/unionfs/super.c | 34 - fs/unionfs/union.h |1 include/linux/mm.h |2 - 6 files changed, 52 insertions(+), 38 deletions(-) --- Erez Zadok [EMAIL PROTECTED] - To unsubscribe

  1   2   3   >