From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Yang Date: Tue, 6 Nov 2018 09:43:43 +0800 Subject: [LTP] [PATCH] zram/zram03.c: Fix obsolete zram status files In-Reply-To: <20181106000327.GA4619@dell5510> References: <1531385810-22036-1-git-send-email-yangx.jy@cn.fujitsu.com> <20181106000327.GA4619@dell5510> Message-ID: <5BE0F1CF.5060001@cn.fujitsu.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it On 2018/11/06 8:03, Petr Vorel wrote: > Hi Xiao, > >> Since kernel commit c87d1655c295, separate zram status files("compr_data_size", >> "num_reads" etc.) which can be accessed via one of zram/stat or >> zram/io_stat or zram/mm_stat were removed. >> This commit broke zram03, as below: >> ---------------------------------------------------------------------- >> safe_file_ops.c:144: Failed to open FILE '/sys/block/zram0/compr_data_size' >> for reading at zram03.c:181: errno=ENOENT(2): No such file or directory >> ---------------------------------------------------------------------- >> Also, zero pages in zram/mm_stat was extended to same element pages >> since kernel commit 8e19d540d107. >> We try to get requested zram status by zram/stat and zram/mm_stat >> if separate zram status files don't exist. >> URL for detailed zram status: >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/blockdev/zram.txt >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/block/stat.txt >> Signed-off-by: Xiao Yang >> --- > Thanks for your patch, merged! > I'm sorry to keep you waiting for review so long. Hi Petr, It doesn't matter, thanks for your review and push. :-) Best Regards, Xiao Yang > > Kind regards, > Petr > > >