Re: [PATCH 2/4] fs: add fadvise file_operation

2014-10-21 Thread Dmitry Monakhov
Christoph Hellwig writes: > On Sat, Oct 18, 2014 at 07:21:26PM +0400, Dmitry Monakhov wrote: >> sys_fadvise result in direct f_mode modification, which may be not >> suitable for some unusual filesytems where file mode invariant is more >> complex. In order to support such filesystems we have

Re: [PATCH 2/4] fs: add fadvise file_operation

2014-10-21 Thread Dmitry Monakhov
Christoph Hellwig h...@infradead.org writes: On Sat, Oct 18, 2014 at 07:21:26PM +0400, Dmitry Monakhov wrote: sys_fadvise result in direct f_mode modification, which may be not suitable for some unusual filesytems where file mode invariant is more complex. In order to support such

Re: [PATCH 2/4] fs: add fadvise file_operation

2014-10-19 Thread Christoph Hellwig
On Sat, Oct 18, 2014 at 07:21:26PM +0400, Dmitry Monakhov wrote: > sys_fadvise result in direct f_mode modification, which may be not > suitable for some unusual filesytems where file mode invariant is more > complex. In order to support such filesystems we have to delegate fadvise > logic to

Re: [PATCH 2/4] fs: add fadvise file_operation

2014-10-19 Thread Christoph Hellwig
On Sat, Oct 18, 2014 at 07:21:26PM +0400, Dmitry Monakhov wrote: sys_fadvise result in direct f_mode modification, which may be not suitable for some unusual filesytems where file mode invariant is more complex. In order to support such filesystems we have to delegate fadvise logic to

[PATCH 2/4] fs: add fadvise file_operation

2014-10-18 Thread Dmitry Monakhov
sys_fadvise result in direct f_mode modification, which may be not suitable for some unusual filesytems where file mode invariant is more complex. In order to support such filesystems we have to delegate fadvise logic to filesystem layer. Signed-off-by: Dmitry Monakhov --- include/linux/fs.h |

[PATCH 2/4] fs: add fadvise file_operation

2014-10-18 Thread Dmitry Monakhov
sys_fadvise result in direct f_mode modification, which may be not suitable for some unusual filesytems where file mode invariant is more complex. In order to support such filesystems we have to delegate fadvise logic to filesystem layer. Signed-off-by: Dmitry Monakhov dmonak...@openvz.org ---