All of lore.kernel.org
 help / color / mirror / Atom feed
* master - libdm: use a constant for FIEMAP buffer size
@ 2016-07-08 21:05 Bryn Reeves
  0 siblings, 0 replies; only message in thread
From: Bryn Reeves @ 2016-07-08 21:05 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2d1f03b6164bce6f871918f563de9d8233e76f93
Commit:        2d1f03b6164bce6f871918f563de9d8233e76f93
Parent:        58bfea6a6e2789896e81fefe18e504fb7222e834
Author:        Bryn M. Reeves <bmr@redhat.com>
AuthorDate:    Fri Jul 8 21:13:25 2016 +0100
Committer:     Bryn M. Reeves <bmr@redhat.com>
CommitterDate: Fri Jul 8 22:05:36 2016 +0100

libdm: use a constant for FIEMAP buffer size

---
 libdm/libdm-stats.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c
index d911c60..bf9b7e3 100644
--- a/libdm/libdm-stats.c
+++ b/libdm/libdm-stats.c
@@ -37,6 +37,7 @@
 
 #define STATS_ROW_BUF_LEN 4096
 #define STATS_MSG_BUF_LEN 1024
+#define STATS_FIE_BUF_LEN 2048
 
 #define SECTOR_SHIFT 9L
 
@@ -4147,7 +4148,7 @@ static int _stats_add_extent(struct dm_pool *mem, struct fiemap_extent *fm_ext,
 static struct _extent *_stats_get_extents_for_file(struct dm_pool *mem, int fd,
 						   uint64_t *count)
 {
-	uint64_t buf[2048];
+	uint64_t buf[STATS_FIE_BUF_LEN];
 	struct fiemap *fiemap = (struct fiemap *)buf;
 	struct fiemap_extent *fm_ext = &fiemap->fm_extents[0];
 	struct fiemap_extent fm_last = {0};



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-08 21:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-08 21:05 master - libdm: use a constant for FIEMAP buffer size Bryn Reeves

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.