Skip to content

Commit b1439b1

Browse files
author
Al Viro
committed
swsusp: don't bother with setting block size
same as with the swap... Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent ebb0173 commit b1439b1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

kernel/power/swap.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,7 @@ static int swsusp_swap_check(void)
368368
if (IS_ERR(hib_resume_bdev_file))
369369
return PTR_ERR(hib_resume_bdev_file);
370370

371-
res = set_blocksize(file_bdev(hib_resume_bdev_file), PAGE_SIZE);
372-
if (res < 0)
373-
fput(hib_resume_bdev_file);
374-
375-
return res;
371+
return 0;
376372
}
377373

378374
/**
@@ -1574,7 +1570,6 @@ int swsusp_check(bool exclusive)
15741570
hib_resume_bdev_file = bdev_file_open_by_dev(swsusp_resume_device,
15751571
BLK_OPEN_READ, holder, NULL);
15761572
if (!IS_ERR(hib_resume_bdev_file)) {
1577-
set_blocksize(file_bdev(hib_resume_bdev_file), PAGE_SIZE);
15781573
clear_page(swsusp_header);
15791574
error = hib_submit_io(REQ_OP_READ, swsusp_resume_block,
15801575
swsusp_header, NULL);

0 commit comments

Comments
 (0)