From: kalpak Date: Fri, 8 Aug 2008 13:58:16 +0000 (+0000) Subject: b=10555 X-Git-Tag: v1_7_140~1^160 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0b4ef069fea86945274f86655707abb89985d6a7;p=fs%2Flustre-release.git b=10555 i=adilger Small fix for fiemap calls on block boundary --- diff --git a/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6.22-vanilla.patch b/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6.22-vanilla.patch index 0b90dcb..76474bf 100644 --- a/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6.22-vanilla.patch +++ b/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6.22-vanilla.patch @@ -391,7 +391,7 @@ Index: linux-2.6.22.14/fs/ext3/extents.c + return -EBADR; + + start_blk = start >> inode->i_sb->s_blocksize_bits; -+ len_blks = (len + inode->i_sb->s_blocksize) >> inode->i_sb->s_blocksize_bits; ++ len_blks = (len + inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits; + + /* + * Walk the extent tree gathering extent information. @@ -416,10 +416,10 @@ Index: linux-2.6.22.14/fs/ext3/fiemap.h +/* + * FIEMAP ioctl infrastructure. + * -+ * Copyright (C) 2007 Cluster File Systems, Inc ++ * Copyright 2008 Sun Microsystems, Inc. + * + * Author: Kalpak Shah -+ * Andreas Dilger ++ * Andreas Dilger + */ + +#ifndef _LINUX_EXT3_FIEMAP_H