summaryrefslogtreecommitdiffstats
path: root/mm/zswap.c
diff options
context:
space:
mode:
authorGanesh Mahendran2014-12-13 01:57:13 +0100
committerLinus Torvalds2014-12-13 21:42:50 +0100
commit083914eab96fabddfc715f0436e082eb375c5704 (patch)
treea4d60aa9d39cf9687ee7b047447096673a94edc1 /mm/zswap.c
parentmm/zsmalloc: allocate exactly size of struct zs_pool (diff)
downloadkernel-qcow2-linux-083914eab96fabddfc715f0436e082eb375c5704.tar.gz
kernel-qcow2-linux-083914eab96fabddfc715f0436e082eb375c5704.tar.xz
kernel-qcow2-linux-083914eab96fabddfc715f0436e082eb375c5704.zip
zram: use DEVICE_ATTR_[RW|RO|WO] to define zram sys device attribute
In current zram, we use DEVICE_ATTR() to define sys device attributes. SO, we need to set (S_IRUGO | S_IWUSR) permission and other arguments manually. Linux already provids the macro DEVICE_ATTR_[RW|RO|WO] to define sys device attribute. It is simple and readable. This patch uses kernel defined macro DEVICE_ATTR_[RW|RO|WO] to define zram device attribute. Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com> Acked-by: Jerome Marchand <jmarchan@redhat.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Nitin Gupta <ngupta@vflare.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zswap.c')
0 files changed, 0 insertions, 0 deletions