diff options
| author | Sergey Senozhatsky <[email protected]> | 2014-04-07 15:38:09 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-04-07 16:36:00 -0700 |
| commit | b67d1ec189ffb92cdad9b2bd29475fb1e0166983 (patch) | |
| tree | 47ee59a17c86fe9e7e778eb89069178ae775f321 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 8dd1d3247e6c00b50ef83934ea8b22a1590015de (diff) | |
zram: delete zram_init_device()
allocate new `zram_meta' in disksize_store() only for uninitialised zram
device, saving a number of allocations and deallocations in case if
disksize_store() was called on currently used device. at the same time
zram_meta stack variable is not necessary, because we can set ->meta
directly. there is also no need in setting QUEUE_FLAG_NONROT queue on
every disksize_store(), set it once during device creation.
[[email protected]: handle zram->meta alloc fail case]
[[email protected]: prevent lockdep spew of init_lock]
Signed-off-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Minchan Kim <[email protected]>
Acked-by: Jerome Marchand <[email protected]>
Cc: Sasha Levin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions