Home
last modified time | relevance | path

Searched refs:rw (Results 1 – 25 of 33) sorted by relevance

12

/fs/
Ddirect-io.c69 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 …]
Dbuffer.c2986 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()
Dmpage.c85 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()
Dbio-integrity.c153 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()
Dblock_dev.c167 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/
Dvolumes.h123 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,
Dvolumes.c2398 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 …]
Ddisk-io.c72 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 …]
Ddisk-io.h88 int rw, struct bio *bio, int mirror_num,
Dinode.c1254 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 …]
Dextent_io.h38 typedef int (extent_submit_bio_hook_t)(struct inode *inode, int rw,
Dextent_io.c1834 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/
Dutil.c116 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/
Dinode.c309 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/
Dinode.h135 ssize_t ocfs2_rw_direct(int rw, struct file *filp, char *buf,
Daops.c670 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/
Dops_address.c969 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/
Dxfs_buf.h379 #define xfs_biomove(bp, off, len, data, rw) \ argument
381 ((rw) == XFS_B_WRITE) ? XBRW_WRITE : XBRW_READ)
Dxfs_buf.c1166 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()
Dxfs_aops.c1523 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/
Dinode.c103 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/
Dinode.c106 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/
Dinode.c170 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/
Dinode.c774 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/
Dinode.c1692 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()

12