Re: [PATCH 00/19] pramfs

2013-09-09 Thread Marco Stornelli
Il 09/09/2013 01:40, Dave Chinner ha scritto: On Sat, Sep 07, 2013 at 10:14:04AM +0200, Marco Stornelli wrote: Hi all, this is an attempt to include pramfs in mainline. At the moment pramfs has been included in LTSI kernel. Since last review the code is more or less the same but, with a really

Re: [PATCH 00/19] pramfs

2013-09-08 Thread Marco Stornelli
Il 08/09/2013 11:05, Vladimir Davydov ha scritto: On 09/07/2013 08:22 PM, Marco Stornelli wrote: Il 07/09/2013 16:58, richard -rw- weinberger ha scritto: On Sat, Sep 7, 2013 at 10:14 AM, Marco Stornelli wrote: Hi all, this is an attempt to include pramfs in mainline. At the moment pramfs

Re: [PATCH 00/19] pramfs

2013-09-07 Thread Marco Stornelli
Il 07/09/2013 10:14, Marco Stornelli ha scritto: Hi all, this is an attempt to include pramfs in mainline. At the moment pramfs has been included in LTSI kernel. Since last review the code is more or less the same but, with a really big thanks to Vladimir Davydov and Parallels, the development

Re: [PATCH 00/19] pramfs

2013-09-07 Thread Marco Stornelli
Il 07/09/2013 16:58, richard -rw- weinberger ha scritto: On Sat, Sep 7, 2013 at 10:14 AM, Marco Stornelli wrote: Hi all, this is an attempt to include pramfs in mainline. At the moment pramfs has been included in LTSI kernel. Since last review the code is more or less the same but, with a

Re: [PATCH 09/19] pramfs: inode operations for dirs

2013-09-07 Thread Marco Stornelli
Il 07/09/2013 17:08, Al Viro ha scritto: On Sat, Sep 07, 2013 at 10:23:42AM +0200, Marco Stornelli wrote: +static int pram_rmdir(struct inode *dir, struct dentry *dentry) +{ + struct inode *inode = dentry->d_inode; + struct pram_inode *pi; + int err = -ENOTEMPTY; + +

Re: [PATCH 08/19] pramfs: file operations for dirs

2013-09-07 Thread Marco Stornelli
Il 07/09/2013 17:01, Al Viro ha scritto: On Sat, Sep 07, 2013 at 10:22:36AM +0200, Marco Stornelli wrote: +int pram_add_link(struct dentry *dentry, struct inode *inode) +{ + struct inode *dir = dentry->d_parent->d_inode; + struct pram_inode *pidir, *pi, *pitail = NULL; +

Re: [PATCH 12/19] pramfs: symlink operations

2013-09-07 Thread Marco Stornelli
Il 07/09/2013 16:41, Al Viro ha scritto: On Sat, Sep 07, 2013 at 10:29:15AM +0200, Marco Stornelli wrote: +static int pram_readlink(struct dentry *dentry, char __user *buffer, int buflen) +{ + struct inode *inode = dentry->d_inode; + struct super_block *sb = inode-&g

[PATCH 19/19] pramfs: Kconfig and makefile

2013-09-07 Thread Marco Stornelli
Add Kconfig and makefile. Signed-off-by: Marco Stornelli --- fs/Kconfig |6 +++- fs/Makefile|1 + fs/pramfs/Kconfig | 72 fs/pramfs/Makefile | 14 ++ 4 files changed, 91 insertions(+), 2 deletions

[PATCH 18/19] pramfs: test module

2013-09-07 Thread Marco Stornelli
Add test module. Signed-off-by: Marco Stornelli --- fs/pramfs/pramfs_test.c | 47 +++ 1 files changed, 47 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/pramfs_test.c diff --git a/fs/pramfs/pramfs_test.c b/fs/pramfs/pramfs_test.c new

[PATCH 17/19] pramfs: write protection

2013-09-07 Thread Marco Stornelli
Add write protection. Signed-off-by: Marco Stornelli --- fs/pramfs/wprotect.c | 39 ++ fs/pramfs/wprotect.h | 144 ++ 2 files changed, 183 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/wprotect.c create mode 100644 fs

[PATCH 16/19] pramfs: acl operations

2013-09-07 Thread Marco Stornelli
Add acl operations. Signed-off-by: Marco Stornelli --- fs/pramfs/acl.c | 415 +++ fs/pramfs/acl.h | 85 +++ 2 files changed, 500 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/acl.c create mode 100644 fs/pramfs/acl.h

[PATCH 15/19] pramfs: extended attributes

2013-09-07 Thread Marco Stornelli
Add extended attributes. Signed-off-by: Marco Stornelli --- fs/pramfs/xattr.c | 1118 fs/pramfs/xattr.h | 92 fs/pramfs/xattr_security.c | 80 fs/pramfs/xattr_trusted.c | 65 +++ fs/pramfs/xattr_user.c | 69

[PATCH 14/19] pramfs: extended attributes block description tree

2013-09-07 Thread Marco Stornelli
Add extended attributes block description tree. Signed-off-by: Marco Stornelli --- fs/pramfs/desctree.c | 181 ++ fs/pramfs/desctree.h | 44 2 files changed, 225 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs

[PATCH 12/19] pramfs: symlink operations

2013-09-07 Thread Marco Stornelli
Add symlink operations. Signed-off-by: Marco Stornelli --- fs/pramfs/symlink.c | 76 +++ 1 files changed, 76 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/symlink.c diff --git a/fs/pramfs/symlink.c b/fs/pramfs/symlink.c new file

[PATCH 13/19] pramfs: xip operations

2013-09-07 Thread Marco Stornelli
Add xip operations. Signed-off-by: Marco Stornelli --- fs/pramfs/xip.c | 119 +++ fs/pramfs/xip.h | 33 +++ 2 files changed, 152 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/xip.c create mode 100644 fs/pramfs

[PATCH 11/19] pramfs: ioctl operations

2013-09-07 Thread Marco Stornelli
Add ioctl operations. Signed-off-by: Marco Stornelli --- fs/pramfs/ioctl.c | 127 + 1 files changed, 127 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/ioctl.c diff --git a/fs/pramfs/ioctl.c b/fs/pramfs/ioctl.c new file mode

[PATCH 10/19] pramfs: block allocation

2013-09-07 Thread Marco Stornelli
Add block allocation operations. Signed-off-by: Marco Stornelli --- fs/pramfs/balloc.c | 160 1 files changed, 160 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/balloc.c diff --git a/fs/pramfs/balloc.c b/fs/pramfs/balloc.c new

[PATCH 09/19] pramfs: inode operations for dirs

2013-09-07 Thread Marco Stornelli
Add inode operations for dirs. Signed-off-by: Marco Stornelli --- fs/pramfs/namei.c | 391 + 1 files changed, 391 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/namei.c diff --git a/fs/pramfs/namei.c b/fs/pramfs/namei.c new file

[PATCH 08/19] pramfs: file operations for dirs

2013-09-07 Thread Marco Stornelli
Add file operations for dirs. Signed-off-by: Marco Stornelli --- fs/pramfs/dir.c | 226 +++ 1 files changed, 226 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/dir.c diff --git a/fs/pramfs/dir.c b/fs/pramfs/dir.c new file mode

[PATCH 07/19] pramfs: file operations

2013-09-07 Thread Marco Stornelli
Add file operations. Signed-off-by: Marco Stornelli --- fs/pramfs/file.c | 417 ++ 1 files changed, 417 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/file.c diff --git a/fs/pramfs/file.c b/fs/pramfs/file.c new file mode 100644

[PATCH 05/19] pramfs: super block operations

2013-09-07 Thread Marco Stornelli
Add super block operations. Signed-off-by: Marco Stornelli --- fs/pramfs/super.c | 994 + 1 files changed, 994 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/super.c diff --git a/fs/pramfs/super.c b/fs/pramfs/super.c new file

[PATCH 06/19] pramfs: inode operations

2013-09-07 Thread Marco Stornelli
Add inode operations. Signed-off-by: Marco Stornelli --- fs/pramfs/inode.c | 907 + 1 files changed, 907 insertions(+), 0 deletions(-) create mode 100644 fs/pramfs/inode.c diff --git a/fs/pramfs/inode.c b/fs/pramfs/inode.c new file mode

[PATCH 04/19] pramfs: add include files

2013-09-07 Thread Marco Stornelli
Added include files. Signed-off-by: Marco Stornelli --- fs/pramfs/pram.h | 283 ++ include/linux/pram_fs.h | 48 +++ include/uapi/linux/Kbuild|1 + include/uapi/linux/magic.h |1 + include/uapi/linux/pram_fs.h | 192

[PATCH 03/19] pramfs: export xip_file_fault

2013-09-07 Thread Marco Stornelli
Export xip_file_fault to modules. Signed-off-by: Marco Stornelli --- include/linux/fs.h |2 ++ mm/filemap_xip.c |3 ++- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 3b4cd82..1f61e07 100644 --- a/include/linux/fs.h +++ b

[PATCH 02/19] pramfs: add x86 set_memory_{rw|ro} flag

2013-09-07 Thread Marco Stornelli
Add a flag to x86 arch to know if a set_memory_{rw|ro} is supported. Signed-off-by: Marco Stornelli --- arch/Kconfig |3 +++ arch/x86/Kconfig |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index 1feb169..589a043 100644 --- a/arch

[PATCH 01/19] pramfs: documentation

2013-09-07 Thread Marco Stornelli
Added pramfs documentation. Signed-off-by: Marco Stornelli --- Documentation/filesystems/pramfs.txt | 177 ++ Documentation/filesystems/xip.txt|2 + MAINTAINERS |9 ++ 3 files changed, 188 insertions(+), 0 deletions

[PATCH 00/19] pramfs

2013-09-07 Thread Marco Stornelli
possibility to correct fs errors due to corruption. It's a "young" tool but we are working on it. You can clone the code from our repos: git clone git://git.code.sf.net/p/pramfs/code pramfs-code git clone git://git.code.sf.net/p/pramfs/Tools pramfs-Tools Marco Stornelli (19): pramfs

O_TMPFILE problem

2013-07-28 Thread Marco Stornelli
Hi, I'm doing a couple of test about O_TMPFILE on my fs. I can see that when the file is closed the blocks allocated are not freed. It happens because of i_mode, it isn't a regular file nor a directory nor a link. I added S_IFREG in my implementation of tmpfile callback when I have to call ne

Re: [PATCH RFC] pram: persistent over-kexec memory file system

2013-07-28 Thread Marco Stornelli
Il 28/07/2013 12:05, Vladimir Davydov ha scritto: On 07/27/2013 09:37 PM, Marco Stornelli wrote: Il 27/07/2013 19:35, Vladimir Davydov ha scritto: On 07/27/2013 07:41 PM, Marco Stornelli wrote: Il 26/07/2013 14:29, Vladimir Davydov ha scritto: Hi, We want to propose a way to upgrade a

Re: [PATCH RFC] pram: persistent over-kexec memory file system

2013-07-27 Thread Marco Stornelli
Il 27/07/2013 19:35, Vladimir Davydov ha scritto: On 07/27/2013 07:41 PM, Marco Stornelli wrote: Il 26/07/2013 14:29, Vladimir Davydov ha scritto: Hi, We want to propose a way to upgrade a kernel on a machine without restarting all the user-space services. This is to be done with CRIU project

Re: [PATCH RFC] pram: persistent over-kexec memory file system

2013-07-27 Thread Marco Stornelli
Il 26/07/2013 14:29, Vladimir Davydov ha scritto: Hi, We want to propose a way to upgrade a kernel on a machine without restarting all the user-space services. This is to be done with CRIU project, but we need help from the kernel to preserve some data in memory while doing kexec. The key point

[3.11-rc1] kernel hangs

2013-07-21 Thread Marco Stornelli
Hi, I'm trying 3.11-rc1 but my vm hangs at boot. I can't see anything because the system hangs after "booting the kernel". Attached my .config. Extra patches: pramfs (with or without it's the same). My environment: intel cpu, 32bit, vm with 64MB RAM, no initramfs, rootfs over NFS on the host

Re: [PATCH v2] fs: add jfsv3 (AIX powerpc native JFS file system) read-only support

2013-05-24 Thread Marco Stornelli
Il 22/05/2013 18:57, p...@macq.eu ha scritto: From: Philippe De Muyter This is a file system driver for the file system called JFS on AIX, but different from what's called jfs on linux. In AIX header files this file system seems to be called "Version 3" or "Version 3p", hence its name here. T

[PATCH 4/4] fsfreeze: return EINTR from mnt_want_write and mnt_want_write_file

2013-05-03 Thread Marco Stornelli
Replaced sb_start_write with sb_start_write_killable inside mnt_want_write and mnt_want_write_file. Signed-off-by: Marco Stornelli Reviewed-by: Jan Kara --- fs/namei.c |6 ++ fs/namespace.c |8 ++-- ipc/mqueue.c |6 +- 3 files changed, 17 insertions(+), 3

[PATCH 3/4] fsfreeze: use sb_start_write_killable instead of sb_start_write

2013-05-03 Thread Marco Stornelli
Replace sb_start_write with sb_start_write_killable where possible. Signed-off-by: Marco Stornelli Reviewed-by: Jan Kara --- fs/open.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/open.c b/fs/open.c index 8c74100..d621d76 100644 --- a/fs/open.c +++ b/fs

[PATCH 2/4] fsfreeze: added new file_start_write_killable

2013-05-03 Thread Marco Stornelli
Replace file_start_write with file_start_write_killable where possible. Signed-off-by: Marco Stornelli Reviewed-by: Jan Kara --- drivers/block/loop.c |4 +++- fs/aio.c |7 +-- fs/coda/file.c |4 +++- fs/read_write.c | 38

[PATCH 1/4] fsfreeze: wait in killable state in __sb_start_write

2013-05-03 Thread Marco Stornelli
Added a new enum to decide if we want to sleep in uninterruptible or killable state or we want simply to return immediately. Signed-off-by: Marco Stornelli Reviewed-by: Jan Kara --- fs/super.c | 24 ++-- include/linux/fs.h | 19 +-- 2 files

Re: [PATCH 4/4] fsfreeze: return EINTR from mnt_want_write and mnt_want_write_file

2013-04-29 Thread Marco Stornelli
2013/4/29 Jan Kara : > On Fri 26-04-13 10:53:27, Marco Stornelli wrote: >> Replaced sb_start_write with sb_start_write_killable inside >> mnt_want_write and mnt_want_write_file. > The patch looks good. You can add: >

Re: [PATCH 2/4] fsfreeze: added new file_start_write_killable

2013-04-26 Thread Marco Stornelli
Hi, Il 26/04/2013 14:06, Matthew Wilcox ha scritto: On Fri, Apr 26, 2013 at 10:50:52AM +0200, Marco Stornelli wrote: Replace file_start_write with file_start_write_killable where possible. I feel like I'm missing context here. Possibly because you only cc'd me on patch 2/4. In

[PATCH 4/4] fsfreeze: return EINTR from mnt_want_write and mnt_want_write_file

2013-04-26 Thread Marco Stornelli
Replaced sb_start_write with sb_start_write_killable inside mnt_want_write and mnt_want_write_file. Signed-off-by: Marco Stornelli --- fs/namei.c |6 ++ fs/namespace.c |8 ++-- ipc/mqueue.c |6 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/fs

[PATCH 3/4] fsfreeze: use sb_start_write_killable instead of sb_start_write

2013-04-26 Thread Marco Stornelli
Replace sb_start_write with sb_start_write_killable where possible. Signed-off-by: Marco Stornelli Reviewed-by: Jan Kara --- fs/open.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/open.c b/fs/open.c index 8c74100..d621d76 100644 --- a/fs/open.c +++ b/fs

[PATCH 2/4] fsfreeze: added new file_start_write_killable

2013-04-26 Thread Marco Stornelli
Replace file_start_write with file_start_write_killable where possible. Signed-off-by: Marco Stornelli Reviewed-by: Jan Kara --- drivers/block/loop.c |4 +++- fs/aio.c |7 +-- fs/coda/file.c |4 +++- fs/read_write.c | 28 +--- fs

[PATCH 1/4] fsfreeze: wait in killable state in __sb_start_write

2013-04-26 Thread Marco Stornelli
Added a new enum to decide if we want to sleep in uninterruptible or killable state or we want simply to return immediately. Signed-off-by: Marco Stornelli Reviewed-by: Jan Kara --- fs/super.c | 24 ++-- include/linux/fs.h | 19 +-- 2 files

[PATCH 0/4] fsfreeze: from uninterruptible to killable

2013-04-26 Thread Marco Stornelli
the moment the path not covered is the page_mkwrite, however it could be covered with a future patch. The work made until now is sufficient to give the user the possibility to do a "kill -9" in several cases. Marco Stornelli (4): fsfreeze: wait in killable state in __sb_start_write

Re: [PATCH 1/3] fsfreeze: wait in killable state in __sb_start_write

2013-04-16 Thread Marco Stornelli
Resend due to mail client problem. Marco 2013/4/17 Marco Stornelli > > Hi, > > > 2013/4/15 Jan Kara >> >> On Sat 13-04-13 12:35:54, Marco Stornelli wrote: >> > Added a new enum to decide if we want to sleep in uninterruptible or >> > killable

Re: Return value of __mm_populate

2013-04-14 Thread Marco Stornelli
Hi, Il 14/04/2013 02:18, KOSAKI Motohiro ha scritto: (4/13/13 5:14 AM), Marco Stornelli wrote: Hi, I was seeing the code of __mm_populate (in -next) and I've got a doubt about the return value. The function __mlock_posix_error_return should return a proper error for mlock, convertin

[PATCH 3/3] fsfreeze: use sb_start_write_killable instead of sb_start_write

2013-04-13 Thread Marco Stornelli
Replace sb_start_write with sb_start_write_killable where possible. Signed-off-by: Marco Stornelli --- fs/open.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/open.c b/fs/open.c index 8c74100..d621d76 100644 --- a/fs/open.c +++ b/fs/open.c @@ -182,7 +182,9

[PATCH 2/3] fsfreeze: added new file_start_write_killable

2013-04-13 Thread Marco Stornelli
Replace file_start_write with file_start_write_killable where possible. Signed-off-by: Marco Stornelli --- drivers/block/loop.c |4 +++- fs/aio.c |7 +-- fs/coda/file.c |4 +++- fs/read_write.c | 28 +--- fs/splice.c

[PATCH 1/3] fsfreeze: wait in killable state in __sb_start_write

2013-04-13 Thread Marco Stornelli
Added a new enum to decide if we want to sleep in uninterruptible or killable state or we want simply to return immediately. Signed-off-by: Marco Stornelli --- fs/super.c | 24 ++-- include/linux/fs.h | 19 +-- 2 files changed, 31 insertions

[PATCH 0/3 v3][RFC] fsfreeze: from uninterruptible to killable

2013-04-13 Thread Marco Stornelli
ments are welcome. Regards. Marco Stornelli (3): fsfreeze: wait in killable state in __sb_start_write fsfreeze: added new file_start_write_killable fsfreeze: use sb_start_write_killable instead of sb_start_write drivers/block/loop.c |4 +++- fs/aio.c |7 +-- fs

[PATCH 2/2 v2][RFC] fsfreeze: replace sb_start_write with sb_start_write_killable

2013-04-08 Thread Marco Stornelli
Replace sb_start_write with sb_start_write_killable where it's possible to manage a SIGKILL. Signed-of-by: Marco Stornelli --- fs/btrfs/file.c |4 +++- fs/cifs/file.c|4 +++- fs/fuse/file.c|4 +++- fs/ntfs/file.c|4 +++- fs/ocfs2/file.c |4 +++- fs/o

[PATCH 1/2 v 2][RFC] fsfreeze: add new internal __sb_start_write_wait

2013-04-08 Thread Marco Stornelli
d. Signed-off-by: Marco Stornelli --- fs/super.c | 47 --- include/linux/fs.h | 23 ++- 2 files changed, 58 insertions(+), 12 deletions(-) diff --git a/fs/super.c b/fs/super.c index 7465d43..cb0149b 100644 --- a/fs/sup

[PATCH 1/2] fsfreeze: add new internal __sb_start_write_wait

2013-04-08 Thread Marco Stornelli
d. Signed-off-by: Marco Stornelli --- fs/super.c | 47 --- include/linux/fs.h | 23 ++- 2 files changed, 58 insertions(+), 12 deletions(-) diff --git a/fs/super.c b/fs/super.c index 7465d43..cb0149b 100644 --- a/fs/sup

Re: [PATCH 3/4] fsfreeze: manage kill signal when sb_start_pagefault is called

2013-04-06 Thread Marco Stornelli
Il 06/04/2013 15:20, Matthew Wilcox ha scritto: On Sat, Apr 06, 2013 at 12:05:52PM +0200, Marco Stornelli wrote: In every place where sb_start_pagefault was called now we must manage the error code and return VM_FAULT_RETRY. Erm ... in patch 1/4: static inline void sb_start_pagefault

Re: [PATCH 2/4] fsfreeze: manage kill signal when sb_start_write is called

2013-04-06 Thread Marco Stornelli
Il 06/04/2013 15:17, Matthew Wilcox ha scritto: On Sat, Apr 06, 2013 at 12:04:52PM +0200, Marco Stornelli wrote: In every place where sb_start_write was called now we must manage the error code and return -EINTR. If we must manage the error code, then these functions should be marked

[PATCH 4/4] fsfreeze: avoid to return zero in __get_user_pages

2013-04-06 Thread Marco Stornelli
alled inside a loop until all the pages requested are gotten or an error code is returned. Signed-off-by: Marco Stornelli --- mm/memory.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 494526a..cca14ed 100644 --- a/mm/memory.c +++ b/mm/mem

[PATCH 3/4] fsfreeze: manage kill signal when sb_start_pagefault is called

2013-04-06 Thread Marco Stornelli
In every place where sb_start_pagefault was called now we must manage the error code and return VM_FAULT_RETRY. Signed-off-by: Marco Stornelli --- fs/btrfs/inode.c |4 +++- fs/buffer.c|4 +++- fs/ext4/inode.c|4 +++- fs/f2fs/file.c |4 +++- fs/gfs2/file.c

[PATCH 2/4] fsfreeze: manage kill signal when sb_start_write is called

2013-04-06 Thread Marco Stornelli
In every place where sb_start_write was called now we must manage the error code and return -EINTR. Signed-off-by: Marco Stornelli --- fs/btrfs/file.c|9 +++-- fs/cifs/file.c |4 +++- fs/ext4/mmp.c |3 ++- fs/ext4/super.c|4 +++- fs/fuse/file.c |4

[PATCH 1/4] fsfreeze: add new internal __sb_start_write_wait

2013-04-06 Thread Marco Stornelli
Added a new internal function __sb_start_write_wait. It must be called when we want wait for freeze events. We can wait in killable or uninterruptible state. The old __sb_start_write now it's used only when we don't want to wait. Signed-off-by: Marco Stornelli --- fs/super.c

[PATCH 0/4] fsfreeze: from uninterruptible to killable waiting

2013-04-06 Thread Marco Stornelli
fsfreeze point of view, sb_start_intwrite is not changed; 2) sb_start_write and sb_start_pagefault now return a proper error code if the process receive SIGKILL and all the functions must manage this error and return EINTR or VM_FAULT_RETRY. Marco Stornelli (4): fsfreeze: add new internal

Re: [RFC] fsfreeze: moving from uniterruptible to killable

2013-03-27 Thread Marco Stornelli
2013/3/27 Jan Kara : > On Wed 27-03-13 12:39:10, Marco Stornelli wrote: >> 2013/3/26 Jan Kara : >> > On Sun 24-03-13 10:10:59, Marco Stornelli wrote: >> >> When a fs is frozen, a process can hang because we wait in >> >> uniterruptible state. We

Re: [RFC] fsfreeze: moving from uniterruptible to killable

2013-03-27 Thread Marco Stornelli
2013/3/26 Jan Kara : > On Sun 24-03-13 10:10:59, Marco Stornelli wrote: >> When a fs is frozen, a process can hang because we wait in >> uniterruptible state. We give the user the possibility to kill the process. > Yes, but it needs slightly more work as you probably kn

[RFC] fsfreeze: moving from uniterruptible to killable

2013-03-24 Thread Marco Stornelli
When a fs is frozen, a process can hang because we wait in uniterruptible state. We give the user the possibility to kill the process. Not-signed-off-by: Marco Stornelli --- --- fs/super.c.orig 2013-03-24 09:56:33.0 +0100 +++ fs/super.c 2013-03-24 09:58:41.0 +0100

[PATCH 21/21] documentation: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- Documentation/filesystems/Locking |6 -- Documentation/filesystems/porting |2 +- Documentation/filesystems/vfs.txt | 11 --- 3 files changed, 1 insertions(+), 18 deletions(-) diff --git a/Documentation/filesystems

[PATCH 20/21] mm: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- include/linux/mm.h |1 - mm/truncate.c | 23 --- 2 files changed, 0 insertions(+), 24 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 4af4f0b..6c93b79 100644 --- a/include/linux/mm.h

[PATCH 19/21] vfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/libfs.c |2 -- include/linux/fs.h |1 - 2 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/libfs.c b/fs/libfs.c index 7cc37ca..c8fe267 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -369,8 +369,6 @@ int

[PATCH 18/21] ntfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli Reviewed-by: Anton Altaparmakov --- fs/ntfs/file.c | 16 +--- fs/ntfs/inode.c |8 ++-- fs/ntfs/inode.h |4 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index

[PATCH 17/21] nilfs2: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/nilfs2/file.c |1 - fs/nilfs2/inode.c| 24 +++- fs/nilfs2/nilfs.h|1 + fs/nilfs2/recovery.c |3 ++- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/fs/nilfs2/file.c b/fs

[PATCH 16/21] ncpfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/ncpfs/inode.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index d7e9fe7..1acdad7 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c @@ -976,9 +976,7 @@ int

[PATCH 15/21] minix: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/minix/file.c |6 -- fs/minix/inode.c | 17 - 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/fs/minix/file.c b/fs/minix/file.c index 4493ce6..adc6f54 100644 --- a/fs/minix/file.c +++ b/fs/minix

[PATCH 14/21] logfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/logfs/readwrite.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c index e1a3b6b..9a59cba 100644 --- a/fs/logfs/readwrite.c +++ b/fs/logfs/readwrite.c @@ -1887,9

[PATCH 13/21] hfsplus: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/hfsplus/inode.c | 27 --- 1 files changed, 16 insertions(+), 11 deletions(-) diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index 2172aa5..799b336 100644 --- a/fs/hfsplus/inode.c +++ b/fs/hfsplus/inode.c

[PATCH 12/21] jfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/jfs/file.c |6 -- fs/jfs/inode.c | 20 ++-- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/fs/jfs/file.c b/fs/jfs/file.c index 9d3afd1..dd7442c 100644 --- a/fs/jfs/file.c +++ b/fs/jfs/file.c

[PATCH 11/21] hpfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/hpfs/file.c | 18 -- fs/hpfs/inode.c |5 - 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c index 89d2a58..e7629f7 100644 --- a/fs/hpfs/file.c +++ b/fs/hpfs/file.c

[PATCH 10/21] hfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/hfs/inode.c | 26 ++ 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c index 0b35903..d47f116 100644 --- a/fs/hfs/inode.c +++ b/fs/hfs/inode.c @@ -35,6 +35,16

[PATCH 09/21] bfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/bfs/file.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/fs/bfs/file.c b/fs/bfs/file.c index f20e8a7..ad3ea14 100644 --- a/fs/bfs/file.c +++ b/fs/bfs/file.c @@ -161,6 +161,14 @@ static int

[PATCH 08/21] affs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/affs/file.c | 18 -- fs/affs/inode.c |5 - 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/fs/affs/file.c b/fs/affs/file.c index 2f4c935..af3261b 100644 --- a/fs/affs/file.c +++ b/fs/affs/file.c

[PATCH 07/21] adfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/adfs/inode.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c index e9bad50..5f95d1e 100644 --- a/fs/adfs/inode.c +++ b/fs/adfs/inode.c @@ -45,6 +45,14 @@ static int

[PATCH 06/21] ocfs2: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/ocfs2/file.c | 18 -- 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index dda0898..9366d32 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -1218,24 +1218,6 @@ int

[PATCH 05/21] omfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli Acked-by: Bob Copeland --- fs/omfs/file.c | 22 +++--- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/fs/omfs/file.c b/fs/omfs/file.c index 77e3cb2..e0d9b3e 100644 --- a/fs/omfs/file.c +++ b/fs/omfs/file.c

[PATCH 04/21] procfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/proc/base.c|7 --- fs/proc/generic.c |9 + fs/proc/proc_sysctl.c |7 --- 3 files changed, 1 insertions(+), 22 deletions(-) diff --git a/fs/proc/base.c b/fs/proc/base.c index aa63d25..c88e14a 100644

[PATCH 03/21] reiserfs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli Reviewed-by: Jan Kara --- fs/reiserfs/file.c |3 +-- fs/reiserfs/inode.c| 15 +++ fs/reiserfs/reiserfs.h |1 + 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/fs/reiserfs/file.c b/fs/reiserfs/file.c

[PATCH 02/21] sysv: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/sysv/file.c |5 +++-- fs/sysv/itree.c | 17 - 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/fs/sysv/file.c b/fs/sysv/file.c index 0a65939..9d4dc68 100644 --- a/fs/sysv/file.c +++ b/fs/sysv/file.c

[PATCH 01/21] ufs: drop vmtruncate

2012-12-15 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/ufs/inode.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index eb6d0b7..ff24e44 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -526,6 +526,14 @@ int

[PATCH 00/21 v5] drop vmtruncate

2012-12-15 Thread Marco Stornelli
Al v3: reworked after Al and Christoph comments v2: add documentation cleaning v1: first draft Marco Stornelli (21): ufs: drop vmtruncate sysv: drop vmtruncate reiserfs: drop vmtruncate procfs: drop vmtruncate omfs: drop vmtruncate ocfs2: drop vmtruncate adfs: drop vmtruncate affs:

Re: [PATCH] hostfs: fix a not needed double check

2012-11-24 Thread Marco Stornelli
Il 24/11/2012 10:12, Richard Weinberger ha scritto: Am Sat, 24 Nov 2012 10:02:32 +0100 schrieb Marco Stornelli : Il 18/11/2012 09:59, Marco Stornelli ha scritto: Il 20/10/2012 12:02, Marco Stornelli ha scritto: With the commit 3be2be0a32c18b0fd6d623cda63174a332ca0de1 we removed vmtruncate

Re: [PATCH] hostfs: fix a not needed double check

2012-11-24 Thread Marco Stornelli
Il 18/11/2012 09:59, Marco Stornelli ha scritto: Il 20/10/2012 12:02, Marco Stornelli ha scritto: With the commit 3be2be0a32c18b0fd6d623cda63174a332ca0de1 we removed vmtruncate, but actaully there is no need to call inode_newsize_ok() because the checks are already done in inode_change_ok() at

Re: [PATCH] hostfs: fix a not needed double check

2012-11-18 Thread Marco Stornelli
Il 20/10/2012 12:02, Marco Stornelli ha scritto: With the commit 3be2be0a32c18b0fd6d623cda63174a332ca0de1 we removed vmtruncate, but actaully there is no need to call inode_newsize_ok() because the checks are already done in inode_change_ok() at the begin of the function. Signed-off-by: Marco

Re: [PATCH 20/21] mm: drop vmtruncate

2012-11-15 Thread Marco Stornelli
2012/11/16 Jaegeuk Hanse : > On 11/03/2012 05:32 PM, Marco Stornelli wrote: >> >> Removed vmtruncate > > > Hi Marco, > > Could you explain me why vmtruncate need remove? What's the problem and how > to substitute it? > > Regards, > Jaegeuk > vmt

[PATCH 21/21] documentation: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- Documentation/filesystems/Locking |6 -- Documentation/filesystems/porting |2 +- Documentation/filesystems/vfs.txt | 11 --- 3 files changed, 1 insertions(+), 18 deletions(-) diff --git a/Documentation/filesystems

[PATCH 20/21] mm: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- include/linux/mm.h |1 - mm/truncate.c | 23 --- 2 files changed, 0 insertions(+), 24 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index fa06804..95f70bb 100644 --- a/include/linux/mm.h

[PATCH 19/21] vfs: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/libfs.c |2 -- include/linux/fs.h |1 - 2 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/libfs.c b/fs/libfs.c index 7cc37ca..c8fe267 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -369,8 +369,6 @@ int

[PATCH 18/21] ntfs: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/ntfs/file.c | 16 +--- fs/ntfs/inode.c |8 ++-- fs/ntfs/inode.h |4 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index 1ecf464..5b2d4f0 100644 --- a/fs

[PATCH 17/21] nilfs2: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/nilfs2/file.c |1 - fs/nilfs2/inode.c| 24 +++- fs/nilfs2/nilfs.h|1 + fs/nilfs2/recovery.c |3 ++- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/fs/nilfs2/file.c b/fs

[PATCH 16/21] ncpfs: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/ncpfs/inode.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index d7e9fe7..1acdad7 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c @@ -976,9 +976,7 @@ int

[PATCH 14/21] logfs: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/logfs/readwrite.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c index e1a3b6b..9a59cba 100644 --- a/fs/logfs/readwrite.c +++ b/fs/logfs/readwrite.c @@ -1887,9

[PATCH 15/21] minix: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/minix/file.c |6 -- fs/minix/inode.c | 17 - 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/fs/minix/file.c b/fs/minix/file.c index 4493ce6..adc6f54 100644 --- a/fs/minix/file.c +++ b/fs/minix

[PATCH 13/21] hfsplus: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/hfsplus/inode.c | 27 --- 1 files changed, 16 insertions(+), 11 deletions(-) diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index 2172aa5..799b336 100644 --- a/fs/hfsplus/inode.c +++ b/fs/hfsplus/inode.c

[PATCH 12/21] jfs: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/jfs/file.c |6 -- fs/jfs/inode.c | 20 ++-- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/fs/jfs/file.c b/fs/jfs/file.c index 9d3afd1..dd7442c 100644 --- a/fs/jfs/file.c +++ b/fs/jfs/file.c

[PATCH 11/21] hpfs: drop vmtruncate

2012-11-03 Thread Marco Stornelli
Removed vmtruncate Signed-off-by: Marco Stornelli --- fs/hpfs/file.c | 18 -- fs/hpfs/inode.c |5 - 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c index 89d2a58..e7629f7 100644 --- a/fs/hpfs/file.c +++ b/fs/hpfs/file.c

  1   2   3   >