Whamcloud - gitweb
b=10555
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ext3-fiemap-2.6.22-vanilla.patch
index ce2649d..62905c2 100644 (file)
@@ -392,7 +392,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.
@@ -417,10 +417,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 <kalpak.shah@sun.com>
-+ *     Andreas Dilger <adilger@sun.com>
++ *        Andreas Dilger <adilger@sun.com>
 + */
 +
 +#ifndef _LINUX_EXT3_FIEMAP_H