OSDN Git Service

Fix EXTENT_MAP_INLINE off by one in btrfs_drop_extents
authorYan <yanzheng@21cn.com>
Tue, 6 Nov 2007 15:26:28 +0000 (10:26 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:57 +0000 (11:03 -0400)
commita273208edd55463b3bcd8b77a6fe8ba54afc6940
treefa89bce25b3067bc2e11612c4f28ef8fec9bd27a
parentdcfec0dcb1b1a037fb26177789e8f108bc429cb3
Fix EXTENT_MAP_INLINE off by one in btrfs_drop_extents

Don't set hint_byte to EXTENT_MAP_INLINE when 'end == extent_end' or
'start == key.offset' . The inline extent will be truncated in these
cases.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c