diff options
| author | Minchan Kim <[email protected]> | 2014-04-07 22:38:21 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-04-07 23:36:02 +0000 |
| commit | 60a726e33375a1096e85399cfa1327081b4c38be (patch) | |
| tree | 3316be45cfc8844bdec5e742cac59f1ebc0dab2f /fs/proc/array.c | |
| parent | zram: return error-valued pointer from zcomp_create() (diff) | |
| download | kernel-60a726e33375a1096e85399cfa1327081b4c38be.tar.gz kernel-60a726e33375a1096e85399cfa1327081b4c38be.zip | |
zram: propagate error to user
When we initialized zcomp with single, we couldn't change
max_comp_streams without zram reset but current interface doesn't show
any error to user and even it changes max_comp_streams's value without
any effect so it would make user very confusing.
This patch prevents max_comp_streams's change when zcomp was initialized
as single zcomp and emit the error to user(ex, echo).
[[email protected]: don't return with the lock held, per Sergey]
[[email protected]: fix coccinelle warnings]
Signed-off-by: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Cc: Jerome Marchand <[email protected]>
Acked-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
