zram: deprecate zram attrs sysfs nodes
authorSergey Senozhatsky <[email protected]>
Wed, 15 Apr 2015 23:16:09 +0000 (16:16 -0700)
committerLinus Torvalds <[email protected]>
Wed, 15 Apr 2015 23:35:21 +0000 (16:35 -0700)
commit8f7d282c717acaae25245c61b6b60e8995ec4ef4
tree619cd0a9f363bfccf911f0fe2fe892a5961e9f9b
parent4f2109f60881585dc04fa0b5657a60556576625c
zram: deprecate zram attrs sysfs nodes

Add Documentation/ABI/obsolete/sysfs-block-zram file and list obsolete and
deprecated attributes there.  The patch also adds additional information
to zram documentation and describes the basic strategy:

- the existing RW nodes will be downgraded to WO nodes (in 4.11)
- deprecated RO sysfs nodes will eventually be removed (in 4.11)

Users will be additionally notified about deprecated attr usage by
pr_warn_once() (added to every deprecated attr _show()), as suggested by
Minchan Kim.

User space is advised to use zram<id>/stat, zram<id>/io_stat and
zram<id>/mm_stat files.

Signed-off-by: Sergey Senozhatsky <[email protected]>
Reported-by: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/ABI/obsolete/sysfs-block-zram [new file with mode: 0644]
Documentation/blockdev/zram.txt
drivers/block/zram/zram_drv.c