kernel_optimize_test/fs/btrfs
Josef Bacik 4bc4bee459 Btrfs: make sure nbytes are right after log replay
While trying to track down a tree log replay bug I noticed that fsck was always
complaining about nbytes not being right for our fsynced file.  That is because
the new fsync stuff doesn't wait for ordered extents to complete, so the inodes
nbytes are not necessarily updated properly when we log it.  So to fix this we
need to set nbytes to whatever it is on the inode that is on disk, so when we
replay the extents we can just add the bytes that are being added as we replay
the extent.  This makes it work for the case that we have the wrong nbytes or
the case that we logged everything and nbytes is actually correct.  With this
I'm no longer getting nbytes errors out of btrfsck.

Cc: stable@vger.kernel.org
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
2013-04-13 07:35:06 -04:00
..
acl.c
async-thread.c
async-thread.h
backref.c Btrfs: fix backref walking race with tree deletions 2013-02-26 11:00:50 -05:00
backref.h Btrfs: move fs/btrfs/ioctl.h to include/uapi/linux/btrfs.h 2013-02-20 09:37:28 -05:00
btrfs_inode.h Btrfs: serialize unlocked dio reads with truncate 2013-02-20 12:59:47 -05:00
check-integrity.c btrfs: define BTRFS_MAGIC as a u64 value 2013-02-20 13:00:01 -05:00
check-integrity.h
compat.h
compression.c
compression.h
ctree.c Btrfs: fix locking on ROOT_REPLACE operations in tree mod log 2013-03-21 19:31:52 -04:00
ctree.h Btrfs: fix wrong reserved space in qgroup during snap/subv creation 2013-02-28 13:33:54 -05:00
delayed-inode.c Btrfs: improve the delayed inode throttling 2013-03-07 07:52:40 -05:00
delayed-inode.h Btrfs: improve the delayed inode throttling 2013-03-07 07:52:40 -05:00
delayed-ref.c
delayed-ref.h Merge branch 'raid56-experimental' into for-linus-3.9 2013-02-20 14:06:05 -05:00
dev-replace.c
dev-replace.h
dir-item.c
disk-io.c Btrfs: fix memory leak in btrfs_create_tree() 2013-03-21 19:31:52 -04:00
disk-io.h
export.c
export.h
extent_io.c Btrfs: fix race between mmap writes and compression 2013-03-26 13:19:14 -04:00
extent_io.h Btrfs: fix race between mmap writes and compression 2013-03-26 13:19:14 -04:00
extent_map.c btrfs: fixup/remove module.h usage as required 2013-03-01 15:01:01 -05:00
extent_map.h
extent-tree.c Btrfs: limit the global reserve to 512mb 2013-03-28 09:51:29 -04:00
file-item.c Btrfs: fix wrong return value of btrfs_lookup_csum() 2013-03-28 09:51:31 -04:00
file.c Btrfs: fix missing qgroup reservation before fallocating 2013-03-21 19:24:32 -04:00
free-space-cache.c Merge branch 'raid56-experimental' into for-linus-3.9 2013-02-20 14:06:05 -05:00
free-space-cache.h
hash.h
inode-item.c
inode-map.c
inode-map.h
inode.c Btrfs: fix wrong reservation of csums 2013-03-28 09:51:30 -04:00
ioctl.c Btrfs: allow running defrag in parallel to administrative tasks 2013-03-04 16:33:24 -05:00
Kconfig
locking.c
locking.h Btrfs: remove btrfs_try_spin_lock 2013-03-14 14:57:10 -04:00
lzo.c
Makefile
math.h
ordered-data.c Btrfs: hold the ordered operations mutex when waiting on ordered extents 2013-03-28 09:51:28 -04:00
ordered-data.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next into for-linus-3.9 2013-02-20 14:05:45 -05:00
orphan.c
print-tree.c btrfs: add missing break in btrfs_print_leaf() 2013-02-20 12:59:20 -05:00
print-tree.h
qgroup.c Btrfs: fix double free in the btrfs_qgroup_account_ref() 2013-03-28 09:51:29 -04:00
raid56.c btrfs/raid56: Add missing #include <linux/vmalloc.h> 2013-03-03 06:53:41 -05:00
raid56.h
rcu-string.h
reada.c
relocation.c Btrfs: do not BUG_ON on aborted situation 2013-03-04 16:33:23 -05:00
root-tree.c
scrub.c Btrfs: don't drop path when printing out tree errors in scrub 2013-03-29 10:18:59 -04:00
send.c Btrfs: fix EIO from btrfs send in is_extent_unchanged for punched holes 2013-03-28 09:51:26 -04:00
send.h btrfs: add "no file data" flag to btrfs send ioctl 2013-02-20 12:59:39 -05:00
struct-funcs.c
super.c Btrfs: fix remount vs autodefrag 2013-02-21 08:11:43 -05:00
sysfs.c btrfs: fixup/remove module.h usage as required 2013-03-01 15:01:01 -05:00
transaction.c Btrfs: fix warning when creating snapshots 2013-03-14 14:57:30 -04:00
transaction.h Btrfs: fix wrong reserved space in qgroup during snap/subv creation 2013-02-28 13:33:54 -05:00
tree-defrag.c btrfs: remove cache only arguments from defrag path 2013-02-20 12:59:36 -05:00
tree-log.c Btrfs: make sure nbytes are right after log replay 2013-04-13 07:35:06 -04:00
tree-log.h
ulist.c btrfs: fixup/remove module.h usage as required 2013-03-01 15:01:01 -05:00
ulist.h
version.h
volumes.c Btrfs: handle a bogus chunk tree nicely 2013-03-21 19:24:31 -04:00
volumes.h Merge branch 'raid56-experimental' into for-linus-3.9 2013-02-20 14:06:05 -05:00
xattr.c
xattr.h
zlib.c