diff options
author | Chao Yu <chao@kernel.org> | 2021-08-25 20:58:10 +0800 |
---|---|---|
committer | Chao Yu <chao.yu@oppo.com> | 2022-08-08 23:28:28 +0800 |
commit | 45c1bae05fa9cd185b4dbbf01341d0df8a4c3167 (patch) | |
tree | e8c7b1409c2c00a21f845dd19b6e5ae2bfcb0c85 | |
parent | ff69bb7f6fd6731f40308ef568bb51f0b00319b3 (diff) | |
download | linux-feature/dax.tar.gz |
f2fs: dax: support collapse/insertfeature/dax
Signed-off-by: Chao Yu <chao@kernel.org>
-rw-r--r-- | fs/f2fs/file.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 92d664d6275f3..b0e3c16c13c9a 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1497,9 +1497,6 @@ static int f2fs_collapse_range(struct inode *inode, loff_t offset, loff_t len) loff_t new_size; int ret; - if (IS_DAX(inode)) - return -EOPNOTSUPP; - if (offset + len >= i_size_read(inode)) return -EINVAL; @@ -1715,9 +1712,6 @@ static int f2fs_insert_range(struct inode *inode, loff_t offset, loff_t len) loff_t new_size; int ret = 0; - if (IS_DAX(inode)) - return -EOPNOTSUPP; - new_size = i_size_read(inode) + len; ret = inode_newsize_ok(inode, new_size); if (ret) |