summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/scan.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2015-03-17 10:52:28 -0400
committerJosef Bacik <jbacik@fb.com>2015-03-17 16:36:35 -0400
commite1cbbfa5f5aaf40a1fe70856fac4dfcc33e0e651 (patch)
tree0b2a6f3ccbcf72d81aff6119bbba83d02bc3d665 /fs/jffs2/scan.c
parent6a3891c551268dd4ff0969b883c4c8b8d974db8f (diff)
downloadop-kernel-dev-e1cbbfa5f5aaf40a1fe70856fac4dfcc33e0e651.zip
op-kernel-dev-e1cbbfa5f5aaf40a1fe70856fac4dfcc33e0e651.tar.gz
Btrfs: fix outstanding_extents accounting in DIO
We are keeping track of how many extents we need to reserve properly based on the amount we want to write, but we were still incrementing outstanding_extents if we wrote less than what we requested. This isn't quite right since we will be limited to our max extent size. So instead lets do something horrible! Keep track of how many outstanding_extents we reserved, and decrement each time we allocate an extent. If we use our entire reserve make sure to jack up outstanding_extents on the inode so the accounting works out properly. Thanks, Reported-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'fs/jffs2/scan.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud