lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJfpegvYY_fUMOA_CE1vg849Jga_iSvaswVs2Fb6EUJPH2f0uw@mail.gmail.com>
Date:	Thu, 2 May 2013 17:05:25 +0200
From:	Miklos Szeredi <miklos@...redi.hu>
To:	majianpeng <majianpeng@...il.com>
Cc:	fuse-devel <fuse-devel@...ts.sourceforge.net>,
	Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] fuse: Consider the ->big_writes for allocing fuse_req
 when do writing

On Wed, Mar 27, 2013 at 3:02 AM, majianpeng <majianpeng@...il.com> wrote:
> If fc->big_writes == 0, for write-operation it only do 4k in func fuse_fill_write_pages.
> So when alloc fuse_req,we should consider this restrict in order to
> do additional operations.
> The additional operations are memset-opeartion in func fuse_requenst_alloc and alloc more space if nr_pages is larger than FUSE_REQ_MIN_PAGES.

Your mailer is removing whitespace from the patch.   Anyway, I applied
it by hand, thanks.

Miklos

>
> Signed-off-by: Jianpeng Ma <majianpeng@...il.com>
> ---
> fs/fuse/file.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/fs/fuse/file.c b/fs/fuse/file.c
> index 34b80ba..c584a31 100644
> --- a/fs/fuse/file.c
> +++ b/fs/fuse/file.c
> @@ -912,8 +912,13 @@ static ssize_t fuse_perform_write(struct file *file,
> do {
> struct fuse_req *req;
> ssize_t count;
> - unsigned nr_pages = fuse_wr_pages(pos, iov_iter_count(ii));
> + unsigned nr_pages;
>
> + if (!fc->big_writes)
> + nr_pages = 1;
> + else
> + nr_pages = fuse_wr_pages(pos, iov_iter_count(ii));
> +
> req = fuse_get_req(fc, nr_pages);
> if (IS_ERR(req)) {
> err = PTR_ERR(req);
> --
> 1.8.2.rc2.4.g7799588
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ