From: Sergey Senozhatsky Date: Tue, 7 Apr 2015 23:44:45 +0000 (+1000) Subject: zram: trivial: correct flag operations comment X-Git-Tag: KARO-TXA5-2015-06-26~18^2~224 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e444bca9dd0c338f2cd6299eda2a3f5c7f560dab;p=karo-tx-linux.git zram: trivial: correct flag operations comment We don't have meta->tb_lock anymore and use meta table entry bit_spin_lock instead. update comment. Signed-off-by: Sergey Senozhatsky Cc: Minchan Kim Cc: Nitin Gupta Signed-off-by: Andrew Morton --- diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index b6b556567eb4..2769bc899bda 100644 --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c @@ -70,7 +70,7 @@ static inline struct zram *dev_to_zram(struct device *dev) return (struct zram *)dev_to_disk(dev)->private_data; } -/* flag operations needs meta->tb_lock */ +/* flag operations require table entry bit_spin_lock() being held */ static int zram_test_flag(struct zram_meta *meta, u32 index, enum zram_pageflags flag) {