Re: [PATCH 3/4] ecryptfs: add fadvise/set_flags calbacks

2014-10-19 Thread Christoph Hellwig
On Sat, Oct 18, 2014 at 07:21:27PM +0400, Dmitry Monakhov wrote: > + if (ecryptfs_file_to_private(file)) > + lower_file = ecryptfs_file_to_lower(file); > + > + if (!lower_file || !lower_file->f_op) > + return rc; At least a file without f->f_op should never happen.

[PATCH 3/4] ecryptfs: add fadvise/set_flags calbacks

2014-10-18 Thread Dmitry Monakhov
CC: tyhi...@canonical.com CC: ecryp...@vger.kernel.org Signed-off-by: Dmitry Monakhov --- fs/ecryptfs/file.c | 62 1 files changed, 62 insertions(+), 0 deletions(-) diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c index 4ffa35e..c84df35