/fs/ |
D | direct-io.c | 69 int rw; member 156 dio->rw == READ, /* Write to memory? */ in dio_refill_pages() 159 if (ret < 0 && dio->blocks_available && (dio->rw & WRITE)) { in dio_refill_pages() 236 if ((dio->rw == READ) && ((offset + transferred) > dio->i_size)) in dio_complete() 342 if (dio->is_async && dio->rw == READ) in dio_bio_submit() 345 submit_bio(dio->rw, bio); in dio_bio_submit() 408 if (dio->is_async && dio->rw == READ) { in dio_bio_complete() 414 if (dio->rw == READ && !PageCompound(page)) in dio_bio_complete() 520 create = dio->rw & WRITE; in get_more_blocks() 659 if (dio->rw & WRITE) { in submit_page_section() [all …]
|
D | buffer.c | 2986 int submit_bh(int rw, struct buffer_head * bh) in submit_bh() argument 2999 if (buffer_ordered(bh) && (rw & WRITE)) in submit_bh() 3000 rw |= WRITE_BARRIER; in submit_bh() 3005 if (test_set_buffer_req(bh) && (rw & WRITE)) in submit_bh() 3028 submit_bio(rw, bio); in submit_bh() 3063 void ll_rw_block(int rw, int nr, struct buffer_head *bhs[]) in ll_rw_block() argument 3070 if (rw == SWRITE || rw == SWRITE_SYNC) in ll_rw_block() 3075 if (rw == WRITE || rw == SWRITE || rw == SWRITE_SYNC) { in ll_rw_block() 3079 if (rw == SWRITE_SYNC) in ll_rw_block() 3089 submit_bh(rw, bh); in ll_rw_block()
|
D | mpage.c | 85 struct bio *mpage_bio_submit(int rw, struct bio *bio) in mpage_bio_submit() argument 88 if (rw == WRITE) in mpage_bio_submit() 90 submit_bio(rw, bio); in mpage_bio_submit()
|
D | bio-integrity.c | 153 static int bdev_integrity_enabled(struct block_device *bdev, int rw) in bdev_integrity_enabled() argument 160 if (rw == READ && bi->verify_fn != NULL && in bdev_integrity_enabled() 164 if (rw == WRITE && bi->generate_fn != NULL && in bdev_integrity_enabled()
|
D | block_dev.c | 167 blkdev_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, in blkdev_direct_IO() argument 173 return blockdev_direct_IO_no_locking(rw, iocb, inode, I_BDEV(inode), in blkdev_direct_IO()
|
/fs/btrfs/ |
D | volumes.h | 123 int btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw, 135 int btrfs_map_bio(struct btrfs_root *root, int rw, struct bio *bio,
|
D | volumes.c | 2398 static int __btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw, in __btrfs_map_block() argument 2417 if (multi_ret && !(rw & (1 << BIO_RW))) in __btrfs_map_block() 2451 if (rw & (1 << BIO_RW)) { in __btrfs_map_block() 2461 if (multi_ret && rw == WRITE && in __btrfs_map_block() 2497 if (unplug_page || (rw & (1 << BIO_RW))) in __btrfs_map_block() 2508 if (rw & (1 << BIO_RW)) in __btrfs_map_block() 2519 if (unplug_page || (rw & (1 << BIO_RW))) in __btrfs_map_block() 2567 int btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw, in btrfs_map_block() argument 2571 return __btrfs_map_block(map_tree, rw, logical, length, multi_ret, in btrfs_map_block() 2709 int rw; member [all …]
|
D | disk-io.c | 72 int rw; member 520 async->submit_bio_start(async->inode, async->rw, async->bio, in run_one_async_start() 542 async->submit_bio_done(async->inode, async->rw, async->bio, in run_one_async_done() 555 int rw, struct bio *bio, int mirror_num, in btrfs_wq_submit_bio() argument 567 async->rw = rw; in btrfs_wq_submit_bio() 619 static int __btree_submit_bio_start(struct inode *inode, int rw, in __btree_submit_bio_start() argument 631 static int __btree_submit_bio_done(struct inode *inode, int rw, struct bio *bio, in __btree_submit_bio_done() argument 638 return btrfs_map_bio(BTRFS_I(inode)->root, rw, bio, mirror_num, 1); in __btree_submit_bio_done() 641 static int btree_submit_bio_hook(struct inode *inode, int rw, struct bio *bio, in btree_submit_bio_hook() argument 650 if (!(rw & (1 << BIO_RW))) { in btree_submit_bio_hook() [all …]
|
D | disk-io.h | 88 int rw, struct bio *bio, int mirror_num,
|
D | inode.c | 1254 static int __btrfs_submit_bio_start(struct inode *inode, int rw, in __btrfs_submit_bio_start() argument 1274 static int __btrfs_submit_bio_done(struct inode *inode, int rw, struct bio *bio, in __btrfs_submit_bio_done() argument 1278 return btrfs_map_bio(root, rw, bio, mirror_num, 1); in __btrfs_submit_bio_done() 1285 static int btrfs_submit_bio_hook(struct inode *inode, int rw, struct bio *bio, in btrfs_submit_bio_hook() argument 1297 if (!(rw & (1 << BIO_RW))) { in btrfs_submit_bio_hook() 1310 inode, rw, bio, mirror_num, in btrfs_submit_bio_hook() 1316 return btrfs_map_bio(root, rw, bio, mirror_num, 0); in btrfs_submit_bio_hook() 1601 int rw; in btrfs_io_failed_hook() local 1671 rw = WRITE; in btrfs_io_failed_hook() 1673 rw = READ; in btrfs_io_failed_hook() [all …]
|
D | extent_io.h | 38 typedef int (extent_submit_bio_hook_t)(struct inode *inode, int rw,
|
D | extent_io.c | 1834 static int submit_one_bio(int rw, struct bio *bio, int mirror_num, in submit_one_bio() argument 1852 tree->ops->submit_bio_hook(page->mapping->host, rw, bio, in submit_one_bio() 1855 submit_bio(rw, bio); in submit_one_bio() 1862 static int submit_extent_page(int rw, struct extent_io_tree *tree, in submit_extent_page() argument 1894 ret = submit_one_bio(rw, bio, mirror_num, in submit_extent_page() 1915 ret = submit_one_bio(rw, bio, mirror_num, bio_flags); in submit_extent_page()
|
/fs/ufs/ |
D | util.c | 116 void ubh_ll_rw_block(int rw, struct ufs_buffer_head *ubh) in ubh_ll_rw_block() argument 121 ll_rw_block(rw, ubh->count, ubh->bh); in ubh_ll_rw_block()
|
/fs/jfs/ |
D | inode.c | 309 static ssize_t jfs_direct_IO(int rw, struct kiocb *iocb, in jfs_direct_IO() argument 315 return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, in jfs_direct_IO()
|
/fs/ocfs2/ |
D | inode.h | 135 ssize_t ocfs2_rw_direct(int rw, struct file *filp, char *buf,
|
D | aops.c | 670 static ssize_t ocfs2_direct_IO(int rw, in ocfs2_direct_IO() argument 689 ret = blockdev_direct_IO_no_locking(rw, iocb, inode, in ocfs2_direct_IO()
|
/fs/gfs2/ |
D | ops_address.c | 969 static int gfs2_ok_for_dio(struct gfs2_inode *ip, int rw, loff_t offset) in gfs2_ok_for_dio() argument 986 static ssize_t gfs2_direct_IO(int rw, struct kiocb *iocb, in gfs2_direct_IO() argument 1008 rv = gfs2_ok_for_dio(ip, rw, offset); in gfs2_direct_IO() 1012 rv = blockdev_direct_IO_no_locking(rw, iocb, inode, inode->i_sb->s_bdev, in gfs2_direct_IO()
|
/fs/xfs/linux-2.6/ |
D | xfs_buf.h | 379 #define xfs_biomove(bp, off, len, data, rw) \ argument 381 ((rw) == XFS_B_WRITE) ? XBRW_WRITE : XBRW_READ)
|
D | xfs_buf.c | 1166 int rw, map_i, total_nr_pages, nr_pages; in _xfs_buf_ioapply() local 1178 rw = WRITE_BARRIER; in _xfs_buf_ioapply() 1182 rw = (bp->b_flags & XBF_WRITE) ? WRITE_SYNC : READ_SYNC; in _xfs_buf_ioapply() 1184 rw = (bp->b_flags & XBF_WRITE) ? WRITE : in _xfs_buf_ioapply() 1242 submit_bio(rw, bio); in _xfs_buf_ioapply()
|
D | xfs_aops.c | 1523 int rw, in xfs_vm_direct_IO() argument 1536 if (rw == WRITE) { in xfs_vm_direct_IO() 1538 ret = blockdev_direct_IO_own_locking(rw, iocb, inode, in xfs_vm_direct_IO() 1544 ret = blockdev_direct_IO_no_locking(rw, iocb, inode, in xfs_vm_direct_IO()
|
/fs/hfsplus/ |
D | inode.c | 103 static ssize_t hfsplus_direct_IO(int rw, struct kiocb *iocb, in hfsplus_direct_IO() argument 109 return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, in hfsplus_direct_IO()
|
/fs/hfs/ |
D | inode.c | 106 static ssize_t hfs_direct_IO(int rw, struct kiocb *iocb, in hfs_direct_IO() argument 112 return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, in hfs_direct_IO()
|
/fs/fat/ |
D | inode.c | 170 static ssize_t fat_direct_IO(int rw, struct kiocb *iocb, in fat_direct_IO() argument 177 if (rw == WRITE) { in fat_direct_IO() 196 return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, in fat_direct_IO()
|
/fs/ext2/ |
D | inode.c | 774 ext2_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, in ext2_direct_IO() argument 780 return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, in ext2_direct_IO()
|
/fs/ext3/ |
D | inode.c | 1692 static ssize_t ext3_direct_IO(int rw, struct kiocb *iocb, in ext3_direct_IO() argument 1704 if (rw == WRITE) { in ext3_direct_IO() 1725 ret = blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, in ext3_direct_IO()
|