diff options
author | Chris Mason <chris.mason@oracle.com> | 2012-04-27 14:31:29 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-04-27 14:51:05 -0400 |
commit | dc7fdde39e4962b1a88741f7eba2a6b3be1285d8 (patch) | |
tree | 97cd8b1f9d8c0682c64303d45de1fb55925abcdf /fs/ext2/dir.c | |
parent | fede766f28dd766d4e8feb321fdb19edb21ef6fb (diff) | |
download | linux-stable-dc7fdde39e4962b1a88741f7eba2a6b3be1285d8.tar.gz linux-stable-dc7fdde39e4962b1a88741f7eba2a6b3be1285d8.tar.bz2 linux-stable-dc7fdde39e4962b1a88741f7eba2a6b3be1285d8.zip |
Btrfs: reduce lock contention during extent insertion
We're spending huge amounts of time on lock contention during
end_io processing because we unconditionally assume we are overwriting
an existing extent in the file for each IO.
This checks to see if we are outside i_size, and if so, it uses a
less expensive readonly search of the btree to look for existing
extents.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/ext2/dir.c')
0 files changed, 0 insertions, 0 deletions