aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorChao Yu <[email protected]>2015-07-16 18:18:11 +0800
committerJaegeuk Kim <[email protected]>2015-08-05 08:08:09 -0700
commitecbaa4068f88f96a8ffde37d532e618508394b53 (patch)
treebce9e4897f4174455362b913996bebb241ab628b /fs/jbd2/commit.c
parent0f825ee6e873ac0daf5394c5ec76ca2f3d540370 (diff)
f2fs: reduce region of cp_rwsem covered in f2fs_do_collapse
In f2fs_do_collapse, region cp_rwsem covered is large, since it will be held until all blocks are left shifted, so if we try to collapse small area at the beginning of large file, checkpoint who want to grab writer's lock of cp_rwsem will be delayed for long time. In order to avoid this condition, altering to lock/unlock cp_rwsem each shift operation. Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions