From 52102e1cc9ad68ced492c62b05c7966dabf2f1b0 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Sun, 26 Jul 2009 21:52:01 -0500 Subject: [PATCH] --- yaml --- r: 162751 b: refs/heads/master c: 5c04c78afba4805846519f29f0b55ac8759e0d48 h: refs/heads/master i: 162749: f33fde604b3b9e326db7cd0f95968d7ff36dc3c9 162747: ad22635b8a8cb1bcf3d47a9a351f86ebcd69d4a1 162743: a05991fa31377b79c38bcbbd536e251333bd6e85 162735: 647766dd2f48c501fc2f9362d200a6ebeb584ba5 162719: 65174533d4356514f089cd212ba8ddd2a21618d7 162687: 1958357d2fa9c0dd6e572f48fdd33869a5e95f33 v: v3 --- [refs] | 2 +- trunk/fs/xfs/linux-2.6/xfs_iops.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 070003dc80cf..c21f21151dcf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b56063453881a6d94cf5718c6769de6e35e67753 +refs/heads/master: 5c04c78afba4805846519f29f0b55ac8759e0d48 diff --git a/trunk/fs/xfs/linux-2.6/xfs_iops.c b/trunk/fs/xfs/linux-2.6/xfs_iops.c index 58973bb46038..8070b34cc287 100644 --- a/trunk/fs/xfs/linux-2.6/xfs_iops.c +++ b/trunk/fs/xfs/linux-2.6/xfs_iops.c @@ -680,8 +680,8 @@ xfs_vn_fiemap( else bm.bmv_length = BTOBB(length); - /* our formatter will tell xfs_getbmap when to stop. */ - bm.bmv_count = MAXEXTNUM; + /* We add one because in getbmap world count includes the header */ + bm.bmv_count = fieinfo->fi_extents_max + 1; bm.bmv_iflags = BMV_IF_PREALLOC; if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) bm.bmv_iflags |= BMV_IF_ATTRFORK;