From: Olaf Weber <olaf@sgi.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: xfs mailing list <xfs@oss.sgi.com>
Subject: Re: [PATCH V4] reduce bmv_count in xfs_vn_fiemap
Date: Mon, 27 Jul 2009 09:55:56 +0200 [thread overview]
Message-ID: <bzybpn6y2yb.fsf@fransum.emea.sgi.com> (raw)
In-Reply-To: <4A6D1651.5010102@sandeen.net> (Eric Sandeen's message of "Sun, 26 Jul 2009 21:52:01 -0500")
Eric Sandeen writes:
> commit 6321e3ed2acf3ee9643cdd403e1c88605d7944ba caused
> the full bmv_count's worth of getbmapx structures to get
> allocated; telling it to do MAXEXTNUM was a bit insane,
> resulting in ENOMEM every time.
> Chop it down to something reasonable, the number of slots
> in the caller's input buffer. If this is too large the
> caller may get ENOMEM but the reason should not be a
> mystery, and they can try again with something smaller.
> We add 1 to the value because in the normal getbmap
> world, bmv_count includes the header and xfs_getbmap does:
> nex = bmv->bmv_count - 1;
> if (nex <= 0)
> return XFS_ERROR(EINVAL);
> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-By: Olaf Weber <olaf@sgi.com>
Thanks,
Olaf
--
Olaf Weber SGI Phone: +31(0)30-6696752
Veldzigt 2b Fax: +31(0)30-6696799
Technical Lead 3454 PW de Meern Vnet: 955-7151
Storage Software The Netherlands Email: olaf@sgi.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2009-07-27 7:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-15 19:33 [PATCH] reduce bmv_count in xfs_vn_fiemap Eric Sandeen
2009-07-16 10:56 ` Olaf Weber
2009-07-16 14:19 ` Eric Sandeen
2009-07-16 14:48 ` [PATCH V2] " Eric Sandeen
2009-07-16 15:18 ` Olaf Weber
2009-07-16 19:11 ` [PATCH V3] " Eric Sandeen
2009-07-17 11:46 ` Olaf Weber
2009-07-18 14:25 ` Christoph Hellwig
2009-07-27 2:52 ` [PATCH V4] " Eric Sandeen
2009-07-27 7:55 ` Olaf Weber [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bzybpn6y2yb.fsf@fransum.emea.sgi.com \
--to=olaf@sgi.com \
--cc=sandeen@sandeen.net \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox