* [RFC PATCH] f2fs: preallocate blocks for encrypted file
@ 2016-09-14 10:06 Yunlei He
2016-09-14 23:56 ` Jaegeuk Kim
0 siblings, 1 reply; 2+ messages in thread
From: Yunlei He @ 2016-09-14 10:06 UTC (permalink / raw)
To: linux-f2fs-devel, jaegeuk, yuchao0; +Cc: heyunlei
This patch allow preallocates data blocks for buffered aio writes
in encrypted file.
Signed-off-by: Yunlei He <heyunlei@huawei.com>
---
fs/f2fs/data.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 3e0ef2d..529e9a2 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -639,9 +639,6 @@ ssize_t f2fs_preallocate_blocks(struct kiocb *iocb, struct iov_iter *from)
map.m_next_pgofs = NULL;
- if (f2fs_encrypted_inode(inode))
- return 0;
-
if (iocb->ki_flags & IOCB_DIRECT) {
ret = f2fs_convert_inline_inode(inode);
if (ret)
--
1.9.1
------------------------------------------------------------------------------
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC PATCH] f2fs: preallocate blocks for encrypted file
2016-09-14 10:06 [RFC PATCH] f2fs: preallocate blocks for encrypted file Yunlei He
@ 2016-09-14 23:56 ` Jaegeuk Kim
0 siblings, 0 replies; 2+ messages in thread
From: Jaegeuk Kim @ 2016-09-14 23:56 UTC (permalink / raw)
To: Yunlei He; +Cc: heyunlei, linux-f2fs-devel
On Wed, Sep 14, 2016 at 06:06:55PM +0800, Yunlei He wrote:
> This patch allow preallocates data blocks for buffered aio writes
> in encrypted file.
>
> Signed-off-by: Yunlei He <heyunlei@huawei.com>
> ---
> fs/f2fs/data.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
> index 3e0ef2d..529e9a2 100644
> --- a/fs/f2fs/data.c
> +++ b/fs/f2fs/data.c
> @@ -639,9 +639,6 @@ ssize_t f2fs_preallocate_blocks(struct kiocb *iocb, struct iov_iter *from)
>
> map.m_next_pgofs = NULL;
>
> - if (f2fs_encrypted_inode(inode))
> - return 0;
> -
Then, it needs to remove the condition in prepare_write_begin() as well.
Thanks,
> if (iocb->ki_flags & IOCB_DIRECT) {
> ret = f2fs_convert_inline_inode(inode);
> if (ret)
> --
> 1.9.1
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Linux-f2fs-devel mailing list
> Linux-f2fs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-14 23:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-14 10:06 [RFC PATCH] f2fs: preallocate blocks for encrypted file Yunlei He
2016-09-14 23:56 ` Jaegeuk Kim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.