]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
seek_sanity_test: drop unused pagesz
authorDavid Disseldorp <ddiss@suse.de>
Tue, 11 Oct 2022 09:23:40 +0000 (11:23 +0200)
committerZorro Lang <zlang@kernel.org>
Sat, 15 Oct 2022 04:42:57 +0000 (12:42 +0800)
b91889d7 ("seek_sanity_test: use XFS ioctls to determine file allocation
unit size") left this unused, resulting in:

seek_sanity_test.c: In function 'get_io_sizes':
seek_sanity_test.c:70:6: warning: unused variable 'pagesz'
  int pagesz = sysconf(_SC_PAGE_SIZE);
      ^~~~~~

Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/seek_sanity_test.c

index 78f835e8837b96d663399d3d9bddaec170fb7ff2..8a586f74f55cec433c998ceab700f30f5f710813 100644 (file)
@@ -67,7 +67,6 @@ static int get_io_sizes(int fd)
        off_t pos = 0, offset = 1;
        struct stat buf;
        int shift, ret;
-       int pagesz = sysconf(_SC_PAGE_SIZE);
 
        ret = detect_xfs_alloc_unit(fd);
        if (!ret)