Re: [PATCH 3/7] shared subtree

2005-07-27 Thread Miklos Szeredi
@@ -54,7 +55,7 @@ static inline unsigned long hash(struct struct vfsmount *alloc_vfsmnt(const char *name) { - struct vfsmount *mnt = kmem_cache_alloc(mnt_cache, GFP_KERNEL); + struct vfsmount *mnt = kmem_cache_alloc(mnt_cache, GFP_KERNEL); if (mnt) {

Re: [PATCH 1/7] shared subtree

2005-07-27 Thread Miklos Szeredi
+static int do_make_shared(struct vfsmount *mnt) +{ + int err=0; + struct vfspnode *old_pnode = NULL; + /* + * if the mount is already a slave mount, + * allocate a new pnode and make it + * a slave pnode of the original pnode. + */ + if

Re: [PATCH 1/7] shared subtree

2005-07-27 Thread Ram Pai
On Wed, 2005-07-27 at 12:54, Miklos Szeredi wrote: +static int do_make_shared(struct vfsmount *mnt) +{ + int err=0; + struct vfspnode *old_pnode = NULL; + /* +* if the mount is already a slave mount, +* allocate a new pnode and make it +* a slave pnode of the

Re: [PATCH 3/7] shared subtree

2005-07-27 Thread Ram Pai
On Wed, 2005-07-27 at 12:13, Miklos Szeredi wrote: @@ -54,7 +55,7 @@ static inline unsigned long hash(struct struct vfsmount *alloc_vfsmnt(const char *name) { - struct vfsmount *mnt = kmem_cache_alloc(mnt_cache, GFP_KERNEL); + struct vfsmount *mnt =

What happens to pages that failed to be written to disk?

2005-07-27 Thread Martin Jambor
Hi, I have tried to find out how filesystems are supposed to handle the situation when an asynchronous writeout of a page fails and so had a look at the ext2 code. All I have found is that for example mpage_end_io_write sets the Error flag of both the page and its mapping... and that is about it.