mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
dm snapshot: reduce default memory allocation
Limit the amount of memory allocated per snapshot on systems with a large page size. (The larger default chunk size on these systems compensates for the smaller number of pages reserved.) Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
This commit is contained in:
parent
924362629b
commit
8ee2767a59
@ -36,9 +36,9 @@
|
||||
#define SNAPSHOT_COPY_PRIORITY 2
|
||||
|
||||
/*
|
||||
* Each snapshot reserves this many pages for io
|
||||
* Reserve 1MB for each snapshot initially (with minimum of 1 page).
|
||||
*/
|
||||
#define SNAPSHOT_PAGES 256
|
||||
#define SNAPSHOT_PAGES (((1UL << 20) >> PAGE_SHIFT) ? : 1)
|
||||
|
||||
static struct workqueue_struct *ksnapd;
|
||||
static void flush_queued_bios(struct work_struct *work);
|
||||
|
Loading…
Reference in New Issue
Block a user