Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1635349
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | sunqiuyang <sunqiuyang@huawei.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] f2fs:dax: Export interfaces: dax_map/unmap_atomic() |
| Date | Thu, 04 May 2017 02:20:02 +0200 |
| Message-ID | <tDcEW-4gn-19@gated-at.bofh.it> (permalink) |
| X-Mailer | git-send-email 2.5.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| X-Originating-IP | [10.175.124.28] |
| X-Cfilter-Loop | Reflected |
| X-Mirapoint-Virus-Rapid-Raw | score=unknown(0), refid=str=0001.0A090203.590A7278.0010,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 |
| X-Mirapoint-Loop-ID | d410410ad427bcaee623286037e63e50 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 63 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <miaoxie@huawei.com>, <zhaohongjiang@huawei.com>, <fangwei1@huawei.com>, <wangyijing@huawei.com>, <yi.zhang@huawei.com>, <guzheng1@huawei.com>, <dingxiang@huawei.com>, <houtao1@huawei.com>, <yanaijie@huawei.com>, <wenyuzhong1@huawei.com>, <wangxiaojun11@huawei.com>, <sunqiuyang@huawei.com> |
| X-Original-Date | Thu, 4 May 2017 08:17:25 +0800 |
| X-Original-Message-ID | <1493857045-40693-1-git-send-email-sunqiuyang@huawei.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1635349 |
Show key headers only | View raw
Export interfaces of dax_map/unmap_atomic() for usage in moving data
pages of DAX files in garbage collection of F2FS.
Signed-off-by: Qiuyang Sun <sunqiuyang@huawei.com>
---
fs/dax.c | 6 ++++--
include/linux/dax.h | 3 +++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/dax.c b/fs/dax.c
index 85abd74..615a4c1 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -55,7 +55,7 @@ static int __init init_dax_wait_table(void)
}
fs_initcall(init_dax_wait_table);
-static long dax_map_atomic(struct block_device *bdev, struct blk_dax_ctl *dax)
+long dax_map_atomic(struct block_device *bdev, struct blk_dax_ctl *dax)
{
struct request_queue *q = bdev->bd_queue;
long rc = -EIO;
@@ -72,14 +72,16 @@ static long dax_map_atomic(struct block_device *bdev, struct blk_dax_ctl *dax)
}
return rc;
}
+EXPORT_SYMBOL_GPL(dax_map_atomic);
-static void dax_unmap_atomic(struct block_device *bdev,
+void dax_unmap_atomic(struct block_device *bdev,
const struct blk_dax_ctl *dax)
{
if (IS_ERR(dax->addr))
return;
blk_queue_exit(bdev->bd_queue);
}
+EXPORT_SYMBOL_GPL(dax_unmap_atomic);
static int dax_is_pmd_entry(void *entry)
{
diff --git a/include/linux/dax.h b/include/linux/dax.h
index d8a3dc0..b6451b2 100644
--- a/include/linux/dax.h
+++ b/include/linux/dax.h
@@ -7,6 +7,7 @@
#include <asm/pgtable.h>
struct iomap_ops;
+struct blk_dax_ctl;
/*
* We use lowest available bit in exceptional entry for locking, one bit for
@@ -36,6 +37,8 @@ static inline void *dax_radix_locked_entry(sector_t sector, unsigned long flags)
RADIX_DAX_ENTRY_LOCK);
}
+long dax_map_atomic(struct block_device *bdev, struct blk_dax_ctl *dax);
+void dax_unmap_atomic(struct block_device *bdev, const struct blk_dax_ctl *dax);
ssize_t dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter,
const struct iomap_ops *ops);
int dax_iomap_fault(struct vm_fault *vmf, enum page_entry_size pe_size,
--
1.8.3.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 2/3] f2fs:dax: Export interfaces: dax_map/unmap_atomic() sunqiuyang <sunqiuyang@huawei.com> - 2017-05-04 02:20 +0200
csiph-web