diff options
author | Alex Elder <elder@inktank.com> | 2013-04-01 17:48:40 +0200 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 06:17:50 +0200 |
commit | 3bf53337af27a3ccc6e0f433b081063cdf0a2bf6 (patch) | |
tree | a224b926731eb781daa5828f97ec1830d2aae89b /fs/nfs/delegation.h | |
parent | libceph: use osd_req_op_extent_init() (diff) | |
download | linux-3bf53337af27a3ccc6e0f433b081063cdf0a2bf6.tar.xz linux-3bf53337af27a3ccc6e0f433b081063cdf0a2bf6.zip |
ceph: set up page array mempool with correct size
In create_fs_client() a memory pool is set up be used for arrays of
pages that might be needed in ceph_writepages_start() if memory is
tight. There are two problems with the way it's initialized:
- The size provided is the number of pages we want in the
array, but it should be the number of bytes required for
that many page pointers.
- The number of pages computed can end up being 0, while we
will always need at least one page.
This patch fixes both of these problems.
This resolves the two simple problems defined in:
http://tracker.ceph.com/issues/4603
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'fs/nfs/delegation.h')
0 files changed, 0 insertions, 0 deletions