mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
Merge branch 'for-6.13/block-atomic' into for-6.13/block
Merge in block/fs prep patches for the atomic write support. * for-6.13/block-atomic: block: Add bdev atomic write limits helpers fs/block: Check for IOCB_DIRECT in generic_atomic_write_valid() block/fs: Pass an iocb to generic_atomic_write_valid()
This commit is contained in:
@@ -1682,6 +1682,22 @@ static inline bool bdev_can_atomic_write(struct block_device *bdev)
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline unsigned int
|
||||
bdev_atomic_write_unit_min_bytes(struct block_device *bdev)
|
||||
{
|
||||
if (!bdev_can_atomic_write(bdev))
|
||||
return 0;
|
||||
return queue_atomic_write_unit_min_bytes(bdev_get_queue(bdev));
|
||||
}
|
||||
|
||||
static inline unsigned int
|
||||
bdev_atomic_write_unit_max_bytes(struct block_device *bdev)
|
||||
{
|
||||
if (!bdev_can_atomic_write(bdev))
|
||||
return 0;
|
||||
return queue_atomic_write_unit_max_bytes(bdev_get_queue(bdev));
|
||||
}
|
||||
|
||||
#define DEFINE_IO_COMP_BATCH(name) struct io_comp_batch name = { }
|
||||
|
||||
#endif /* _LINUX_BLKDEV_H */
|
||||
|
||||
Reference in New Issue
Block a user