Home
last modified time | relevance | path

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

/fs/btrfs/
Dlocking.h33 void btrfs_set_lock_blocking_rw(struct extent_buffer *eb, int rw);
34 void btrfs_clear_lock_blocking_rw(struct extent_buffer *eb, int rw);
41 static inline void btrfs_tree_unlock_rw(struct extent_buffer *eb, int rw) in btrfs_tree_unlock_rw() argument
43 if (rw == BTRFS_WRITE_LOCK || rw == BTRFS_WRITE_LOCK_BLOCKING) in btrfs_tree_unlock_rw()
45 else if (rw == BTRFS_READ_LOCK_BLOCKING) in btrfs_tree_unlock_rw()
47 else if (rw == BTRFS_READ_LOCK) in btrfs_tree_unlock_rw()
Dlocking.c34 void btrfs_set_lock_blocking_rw(struct extent_buffer *eb, int rw) in btrfs_set_lock_blocking_rw() argument
44 if (rw == BTRFS_WRITE_LOCK) { in btrfs_set_lock_blocking_rw()
52 } else if (rw == BTRFS_READ_LOCK) { in btrfs_set_lock_blocking_rw()
65 void btrfs_clear_lock_blocking_rw(struct extent_buffer *eb, int rw) in btrfs_clear_lock_blocking_rw() argument
76 if (rw == BTRFS_WRITE_LOCK_BLOCKING) { in btrfs_clear_lock_blocking_rw()
87 } else if (rw == BTRFS_READ_LOCK_BLOCKING) { in btrfs_clear_lock_blocking_rw()
Ddev-replace.h40 void btrfs_dev_replace_lock(struct btrfs_dev_replace *dev_replace, int rw);
41 void btrfs_dev_replace_unlock(struct btrfs_dev_replace *dev_replace, int rw);
Ddev-replace.c892 void btrfs_dev_replace_lock(struct btrfs_dev_replace *dev_replace, int rw) in btrfs_dev_replace_lock() argument
894 if (rw == 1) { in btrfs_dev_replace_lock()
910 void btrfs_dev_replace_unlock(struct btrfs_dev_replace *dev_replace, int rw) in btrfs_dev_replace_unlock() argument
912 if (rw == 1) { in btrfs_dev_replace_unlock()
Drelocation.c4349 int rw = 0; local
4366 rw = 1;
4442 if (err && rw)
/fs/nfs/blocklayout/
Dblocklayout.h183 int ext_tree_remove(struct pnfs_block_layout *bl, bool rw, sector_t start,
188 struct pnfs_block_extent *ret, bool rw);
Dextent_tree.c346 struct pnfs_block_extent *ret, bool rw) in ext_tree_lookup() argument
351 if (!rw) in ext_tree_lookup()
360 int ext_tree_remove(struct pnfs_block_layout *bl, bool rw, in ext_tree_remove() argument
368 if (rw) { in ext_tree_remove()
Dblocklayout.c141 do_add_page_to_bio(struct bio *bio, int npg, int rw, sector_t isect, in do_add_page_to_bio() argument
151 npg, rw, (unsigned long long)isect, offset, *len); in do_add_page_to_bio()
178 bio_set_op_attrs(bio, rw, 0); in do_add_page_to_bio()
/fs/ocfs2/
Drefcounttree.h37 int ocfs2_lock_refcount_tree(struct ocfs2_super *osb, u64 ref_blkno, int rw,
42 int rw);
Drefcounttree.c424 struct ocfs2_refcount_tree *tree, int rw) in __ocfs2_lock_refcount_tree() argument
428 ret = ocfs2_refcount_lock(tree, rw); in __ocfs2_lock_refcount_tree()
434 if (rw) in __ocfs2_lock_refcount_tree()
452 u64 ref_blkno, int rw, in ocfs2_lock_refcount_tree() argument
470 ret = __ocfs2_lock_refcount_tree(osb, tree, rw); in ocfs2_lock_refcount_tree()
481 ocfs2_unlock_refcount_tree(osb, tree, rw); in ocfs2_lock_refcount_tree()
502 ocfs2_unlock_refcount_tree(osb, tree, rw); in ocfs2_lock_refcount_tree()
525 struct ocfs2_refcount_tree *tree, int rw) in ocfs2_unlock_refcount_tree() argument
527 if (rw) in ocfs2_unlock_refcount_tree()
532 ocfs2_refcount_unlock(tree, rw); in ocfs2_unlock_refcount_tree()
/fs/crypto/
Dcrypto.c149 int fscrypt_do_page_crypto(const struct inode *inode, fscrypt_direction_t rw, in fscrypt_do_page_crypto() argument
182 if (rw == FS_DECRYPT) in fscrypt_do_page_crypto()
190 (rw == FS_DECRYPT ? "de" : "en"), in fscrypt_do_page_crypto()
Dfscrypt_private.h122 fscrypt_direction_t rw, u64 lblk_num,
/fs/f2fs/
Ddata.c2674 int rw = iov_iter_rw(iter); in f2fs_direct_IO() local
2689 trace_f2fs_direct_IO_enter(inode, offset, count, rw); in f2fs_direct_IO()
2692 (rw == READ)) { in f2fs_direct_IO()
2703 (rw == WRITE)) { in f2fs_direct_IO()
2713 if (rw == WRITE && whint_mode == WHINT_MODE_OFF) in f2fs_direct_IO()
2717 if (!down_read_trylock(&fi->i_gc_rwsem[rw])) { in f2fs_direct_IO()
2723 up_read(&fi->i_gc_rwsem[rw]); in f2fs_direct_IO()
2729 down_read(&fi->i_gc_rwsem[rw]); in f2fs_direct_IO()
2735 iter, rw == WRITE ? get_data_block_dio_write : in f2fs_direct_IO()
2742 up_read(&fi->i_gc_rwsem[rw]); in f2fs_direct_IO()
[all …]
Df2fs.h1053 #define is_read_io(rw) ((rw) == READ) argument
3630 int rw = iov_iter_rw(iter); in allow_outplace_dio() local
3632 return (test_opt(sbi, LFS) && (rw == WRITE) && in allow_outplace_dio()
3640 int rw = iov_iter_rw(iter); in f2fs_force_buffered_io() local
3652 if (test_opt(sbi, LFS) && (rw == WRITE) && in f2fs_force_buffered_io()
/fs/
Dinternal.h43 extern void guard_bio_eod(int rw, struct bio *bio);
Daio.c1470 static int aio_setup_rw(int rw, struct iocb *iocb, struct iovec **iovec, in aio_setup_rw() argument
1477 ssize_t ret = import_single_range(rw, buf, len, *iovec, iter); in aio_setup_rw()
1483 return compat_import_iovec(rw, buf, len, UIO_FASTIOV, iovec, in aio_setup_rw()
1486 return import_iovec(rw, buf, len, UIO_FASTIOV, iovec, iter); in aio_setup_rw()
/fs/cifs/
Dmisc.c792 setup_aio_ctx_iter(struct cifs_aio_ctx *ctx, struct iov_iter *iter, int rw) in setup_aio_ctx_iter() argument
877 iov_iter_bvec(&ctx->iter, ITER_BVEC | rw, ctx->bv, npages, ctx->len); in setup_aio_ctx_iter()
Dcifsproto.h542 int setup_aio_ctx_iter(struct cifs_aio_ctx *ctx, struct iov_iter *iter, int rw);
/fs/orangefs/
Dorangefs-kernel.h285 int rw; member
/fs/exofs/
Dinode.c252 static void _unlock_pcol_pages(struct page_collect *pcol, int ret, int rw) in _unlock_pcol_pages() argument
259 if (rw == READ) in _unlock_pcol_pages()
/fs/affs/
DChanges225 flush the super block, and rw remounts didn't
/fs/ext4/
Dinode.c3838 int rw = iov_iter_rw(iter); in ext4_direct_IO() local
3860 (rw == READ)) { in ext4_direct_IO()
3871 (rw == WRITE)) { in ext4_direct_IO()
3889 (rw == READ)) in ext4_direct_IO()
3892 (rw == WRITE)) in ext4_direct_IO()