diff options
author | 2013-07-30 11:36:53 +0900 | |
---|---|---|
committer | 2013-07-30 15:17:03 +0900 | |
commit | cbd56e7d20d7188d62a85aa6986a7b2c8e755ab5 (patch) | |
tree | 44962739f9ce15214fc5f0587b2174aae1f032f5 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | f2fs: move bio_private allocation out of f2fs_bio_alloc() (diff) | |
download | linux-dev-cbd56e7d20d7188d62a85aa6986a7b2c8e755ab5.tar.xz linux-dev-cbd56e7d20d7188d62a85aa6986a7b2c8e755ab5.zip |
f2fs: fix handling orphan inodes
This patch fixes mishandling of the sbi->n_orphans variable.
If users request lots of f2fs_unlink(), check_orphan_space() could be contended.
In such the case, sbi->n_orphans can be read incorrectly so that f2fs_unlink()
would fall into the wrong state which results in the failure of
add_orphan_inode().
So, let's increment sbi->n_orphans virtually prior to the actual orphan inode
stuffs. After that, let's release sbi->n_orphans by calling release_orphan_inode
or remove_orphan_inode.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions