Commit b294fa2
ceph: align data in pages in ceph_sync_write
Encrypted files will need to be dealt with in block-sized chunks and
once we do that, the way that ceph_sync_write aligns the data in the
bounce buffer won't be acceptable.
Change it to align the data the same way it would be aligned in the
pagecache.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-and-tested-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent 8cff8f5 commit b294fa2
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
| 1585 | + | |
1585 | 1586 | | |
1586 | 1587 | | |
1587 | 1588 | | |
| |||
1619 | 1620 | | |
1620 | 1621 | | |
1621 | 1622 | | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
1626 | | - | |
1627 | | - | |
| 1623 | + | |
1628 | 1624 | | |
1629 | 1625 | | |
1630 | 1626 | | |
1631 | 1627 | | |
1632 | 1628 | | |
1633 | 1629 | | |
1634 | 1630 | | |
| 1631 | + | |
1635 | 1632 | | |
1636 | | - | |
1637 | | - | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
1638 | 1637 | | |
1639 | 1638 | | |
1640 | 1639 | | |
| |||
1649 | 1648 | | |
1650 | 1649 | | |
1651 | 1650 | | |
1652 | | - | |
1653 | | - | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
1654 | 1654 | | |
1655 | 1655 | | |
1656 | 1656 | | |
| |||
0 commit comments