File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -368,11 +368,7 @@ static int swsusp_swap_check(void)
368
368
if (IS_ERR (hib_resume_bdev_file ))
369
369
return PTR_ERR (hib_resume_bdev_file );
370
370
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 ;
376
372
}
377
373
378
374
/**
@@ -1574,7 +1570,6 @@ int swsusp_check(bool exclusive)
1574
1570
hib_resume_bdev_file = bdev_file_open_by_dev (swsusp_resume_device ,
1575
1571
BLK_OPEN_READ , holder , NULL );
1576
1572
if (!IS_ERR (hib_resume_bdev_file )) {
1577
- set_blocksize (file_bdev (hib_resume_bdev_file ), PAGE_SIZE );
1578
1573
clear_page (swsusp_header );
1579
1574
error = hib_submit_io (REQ_OP_READ , swsusp_resume_block ,
1580
1575
swsusp_header , NULL );
You can’t perform that action at this time.
0 commit comments