swsusp: don't bother with setting block size
same as with the swap... Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
ebb0173df2
commit
b1439b179d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user