Btrfs: align offsets for btrfs_ordered_update_i_size
authorYan, Zheng <yanzheng@21cn.com>
Mon, 28 Dec 2009 05:01:58 +0000 (05:01 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:20:02 +0000 (13:20 -0700)
commite00818493b94468d30f5be73221e60d19ce85dd2
tree7ddc62cdf8c602f79aa8d52b24fa6abc36889bcc
parent77033193e0499bdafc35be3035ab2bd361d75052
Btrfs: align offsets for btrfs_ordered_update_i_size

commit a038fab0cb873c75d6675e2bcffce8a3935bdce7 upstream.

Some callers of btrfs_ordered_update_i_size can now pass in
a NULL for the ordered extent to update against.  This makes
sure we properly align the offset they pass in when deciding
how much to bump the on disk i_size.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/ordered-data.c