]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Fix disk_i_size update corner case
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 12 Nov 2009 09:34:21 +0000 (09:34 +0000)
committerChris Mason <chris.mason@oracle.com>
Thu, 17 Dec 2009 17:33:24 +0000 (12:33 -0500)
commita825fb3498ac578a453373185ea2207dd047a9e6
tree41a947a9d254aeeef40b7e42162d80646477f30a
parent44f38ddc02ad2f10472997d4dbda687d38967c78
Btrfs: Fix disk_i_size update corner case

There are some cases file extents are inserted without involving
ordered struct. In these cases, we update disk_i_size directly,
without checking pending ordered extent and DELALLOC bit. This
patch extends btrfs_ordered_update_i_size() to handle these cases.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/inode.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h