]> Git Repo - linux.git/commitdiff
swsusp: don't bother with setting block size
authorAl Viro <[email protected]>
Wed, 17 Apr 2024 22:38:38 +0000 (18:38 -0400)
committerAl Viro <[email protected]>
Thu, 2 May 2024 21:39:44 +0000 (17:39 -0400)
same as with the swap...

Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Signed-off-by: Al Viro <[email protected]>
kernel/power/swap.c

index 5bc04bfe2db1d355a3ffc0416f51f0ccbbc6f3ad..d9abb7ab031dd5f8dc6950ba26ac0a4d0bb4d7da 100644 (file)
@@ -368,11 +368,7 @@ static int swsusp_swap_check(void)
        if (IS_ERR(hib_resume_bdev_file))
                return PTR_ERR(hib_resume_bdev_file);
 
-       res = set_blocksize(file_bdev(hib_resume_bdev_file), PAGE_SIZE);
-       if (res < 0)
-               fput(hib_resume_bdev_file);
-
-       return res;
+       return 0;
 }
 
 /**
@@ -1574,7 +1570,6 @@ int swsusp_check(bool exclusive)
        hib_resume_bdev_file = bdev_file_open_by_dev(swsusp_resume_device,
                                BLK_OPEN_READ, holder, NULL);
        if (!IS_ERR(hib_resume_bdev_file)) {
-               set_blocksize(file_bdev(hib_resume_bdev_file), PAGE_SIZE);
                clear_page(swsusp_header);
                error = hib_submit_io(REQ_OP_READ, swsusp_resume_block,
                                        swsusp_header, NULL);
This page took 0.055965 seconds and 4 git commands to generate.