1BDEV_WRITE_PAGE(9)               The Linux VFS              BDEV_WRITE_PAGE(9)
2
3
4

NAME

6       bdev_write_page - Start writing a page to a block device
7

SYNOPSIS

9       int bdev_write_page(struct block_device * bdev, sector_t sector,
10                           struct page * page,
11                           struct writeback_control * wbc);
12

ARGUMENTS

14       bdev
15           The device to write the page to
16
17       sector
18           The offset on the device to write the page to (need not be aligned)
19
20       page
21           The page to write
22
23       wbc
24           The writeback_control for the write
25

DESCRIPTION

27       On entry, the page should be locked and not currently under writeback.
28       On exit, if the write started successfully, the page will be unlocked
29       and under writeback. If the write failed already (eg the driver failed
30       to queue the page to the device), the page will still be locked. If the
31       caller is a ->writepage implementation, it will need to unlock the
32       page.
33
34       Errors returned by this function are usually “soft”, eg out of memory,
35       or queue full; callers should try a different route to write this page
36       rather than propagate an error back up the stack.
37

RETURN

39       negative errno if an error occurs, 0 if submission was successful.
40
42Kernel Hackers Manual 3.10         June 2019                BDEV_WRITE_PAGE(9)
Impressum