Re: [f2fs-dev] [PATCH] f2fs: support FAULT_TIMEOUT

2025-04-29 Thread patchwork-bot+f2fs--- via Linux-f2fs-devel
Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Fri, 25 Apr 2025 17:50:55 +0800 you wrote: > Support to inject a timeout fault into function, currently it only > support to inject timeout to commit_atomic_write flow to reproduce > inconsistent bug, like the bug fixed b

[f2fs-dev] [PATCH] f2fs: support FAULT_TIMEOUT

2025-04-25 Thread Chao Yu via Linux-f2fs-devel
Support to inject a timeout fault into function, currently it only support to inject timeout to commit_atomic_write flow to reproduce inconsistent bug, like the bug fixed by commit f098aeba04c9 ("f2fs: fix to avoid atomicity corruption of atomic file"). By default, the new type fault will inject 1

Re: [f2fs-dev] [PATCH] f2fs: support to disable linear lookup fallback

2025-04-04 Thread Daniel Lee via Linux-f2fs-devel
On Sun, Mar 30, 2025 at 7:54 PM Chao Yu wrote: > > After commit 91b587ba79e1 ("f2fs: Introduce linear search for > dentries"), f2fs forced to use linear lookup whenever a hash-based > lookup fails on casefolded directory, it may affect performance > for scenarios: a) create a new file w/ filename

Re: [f2fs-dev] [PATCH] f2fs: support to disable linear lookup fallback

2025-03-31 Thread Chao Yu via Linux-f2fs-devel
On 4/1/25 00:31, Daniel Lee wrote: > On Sun, Mar 30, 2025 at 7:54 PM Chao Yu wrote: >> >> After commit 91b587ba79e1 ("f2fs: Introduce linear search for >> dentries"), f2fs forced to use linear lookup whenever a hash-based >> lookup fails on casefolded directory, it may affect performance >> for sc

[f2fs-dev] [PATCH] f2fs: support to disable linear lookup fallback

2025-03-31 Thread Chao Yu via Linux-f2fs-devel
After commit 91b587ba79e1 ("f2fs: Introduce linear search for dentries"), f2fs forced to use linear lookup whenever a hash-based lookup fails on casefolded directory, it may affect performance for scenarios: a) create a new file w/ filename it doesn't exist in directory, b) lookup a file which may

Re: [f2fs-dev] [PATCH] f2fs: support zero sized file truncate for device aliasing files

2025-03-21 Thread Daeho Jeong
On Mon, Mar 17, 2025 at 8:45 PM Chao Yu wrote: > > On 3/18/25 03:08, Daeho Jeong wrote: > > From: Daeho Jeong > > > > support a file truncation to zero size for device aliasing files. > > > > Signed-off-by: Daeho Jeong > > --- > > fs/f2fs/file.c | 5 - > > 1 file changed, 4 insertions(+), 1

Re: [f2fs-dev] [PATCH] f2fs: support zero sized file truncate for device aliasing files

2025-03-17 Thread Chao Yu via Linux-f2fs-devel
On 3/18/25 03:08, Daeho Jeong wrote: > From: Daeho Jeong > > support a file truncation to zero size for device aliasing files. > > Signed-off-by: Daeho Jeong > --- > fs/f2fs/file.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c > i

[f2fs-dev] [PATCH] f2fs: support zero sized file truncate for device aliasing files

2025-03-17 Thread Daeho Jeong
From: Daeho Jeong support a file truncation to zero size for device aliasing files. Signed-off-by: Daeho Jeong --- fs/f2fs/file.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index f92a9fba9991..7ae5a5af5ed9 100644 --- a/fs/f2fs/file.c

Re: [f2fs-dev] [PATCH] f2fs: support F2FS_NOLINEAR_LOOKUP_FL

2025-03-05 Thread Christoph Hellwig
On Mon, Mar 03, 2025 at 11:06:44PM +, Eric Biggers wrote: > > +/* used for FS_IOC_GETFLAGS and FS_IOC_SETFLAGS */ > > +enum { > > + F2FS_NOLINEAR_LOOKUP_FLAG = 0x0800, > > +}; > > FS_IOC_GETFLAGS and FS_IOC_SETFLAGS are not filesystem-specific, and the > supported flags are declared in i

Re: [f2fs-dev] [PATCH] f2fs: support F2FS_NOLINEAR_LOOKUP_FL

2025-03-05 Thread Chao Yu via Linux-f2fs-devel
On 3/4/25 07:06, Eric Biggers wrote: > On Mon, Mar 03, 2025 at 11:46:06AM +0800, Chao Yu via Linux-f2fs-devel wrote: >> This patch introduces a new flag F2FS_NOLINEAR_LOOKUP_FL, so that we can >> tag casefolded directory w/ it to disable linear lookup functionality, >> it can be used for QA. >> >>

Re: [f2fs-dev] [PATCH] f2fs: support F2FS_NOLINEAR_LOOKUP_FL

2025-03-03 Thread Eric Biggers via Linux-f2fs-devel
On Mon, Mar 03, 2025 at 11:46:06AM +0800, Chao Yu via Linux-f2fs-devel wrote: > This patch introduces a new flag F2FS_NOLINEAR_LOOKUP_FL, so that we can > tag casefolded directory w/ it to disable linear lookup functionality, > it can be used for QA. > > Signed-off-by: Chao Yu > --- > fs/f2fs/di

[f2fs-dev] [PATCH] f2fs: support F2FS_NOLINEAR_LOOKUP_FL

2025-03-02 Thread Chao Yu via Linux-f2fs-devel
This patch introduces a new flag F2FS_NOLINEAR_LOOKUP_FL, so that we can tag casefolded directory w/ it to disable linear lookup functionality, it can be used for QA. Signed-off-by: Chao Yu --- fs/f2fs/dir.c | 3 ++- fs/f2fs/f2fs.h| 2 ++ fs/f2fs/file.c| 36

Re: [f2fs-dev] [PATCH] f2fs: support dio write for zoned storage

2024-10-10 Thread Daeho Jeong
On Fri, Sep 27, 2024 at 12:25 AM Daejun Park wrote: > > With zoned storage, F2FS avoids direct IO writes and uses buffered writes > with page cache flushes to prevent unaligned writes. However, the > unaligned write can be avoided by allowing only a single thread per zone > to perform direct write

[f2fs-dev] [PATCH] f2fs: support dio write for zoned storage

2024-09-27 Thread Daejun Park
With zoned storage, F2FS avoids direct IO writes and uses buffered writes with page cache flushes to prevent unaligned writes. However, the unaligned write can be avoided by allowing only a single thread per zone to perform direct writes. To achieve direct writes in zoned storage, it uses semephor

Re: [f2fs-dev] [PATCH] f2fs: support .shutdown in f2fs_sops

2024-04-14 Thread patchwork-bot+f2fs
Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Thu, 29 Feb 2024 22:38:38 +0800 you wrote: > Support .shutdown callback in f2fs_sops, then, it can be called to > shut down the file system when underlying block device is marked dead. > > Signed-off-by: Chao Yu > --- >

Re: [f2fs-dev] [PATCH] f2fs: support .shutdown in f2fs_sops

2024-03-12 Thread Jaegeuk Kim
Will check this after merge window. On 03/12, Chao Yu wrote: > Ping, > > On 2024/2/29 22:38, Chao Yu wrote: > > Support .shutdown callback in f2fs_sops, then, it can be called to > > shut down the file system when underlying block device is marked dead. > > > > Signed-off-by: Chao Yu > > --- >

Re: [f2fs-dev] [PATCH] f2fs: support .shutdown in f2fs_sops

2024-03-11 Thread Chao Yu
Ping, On 2024/2/29 22:38, Chao Yu wrote: Support .shutdown callback in f2fs_sops, then, it can be called to shut down the file system when underlying block device is marked dead. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 2 ++ fs/f2fs/file.c | 70 ++-

[f2fs-dev] [PATCH] f2fs: support .shutdown in f2fs_sops

2024-02-29 Thread Chao Yu
Support .shutdown callback in f2fs_sops, then, it can be called to shut down the file system when underlying block device is marked dead. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 2 ++ fs/f2fs/file.c | 70 ++--- fs/f2fs/super.c | 6 + 3 file

Re: [f2fs-dev] [PATCH] f2fs: support SEEK_DATA and SEEK_HOLE for compression files

2024-02-22 Thread Chao Yu
On 2024/2/16 4:16, Daeho Jeong wrote: From: Daeho Jeong Fix to support SEEK_DATA and SEEK_HOLE for compression files Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.n

Re: [f2fs-dev] [PATCH] f2fs: support SEEK_DATA and SEEK_HOLE for compression files

2024-02-21 Thread patchwork-bot+f2fs
Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Thu, 15 Feb 2024 12:16:33 -0800 you wrote: > From: Daeho Jeong > > Fix to support SEEK_DATA and SEEK_HOLE for compression files > > Signed-off-by: Daeho Jeong > --- > fs/f2fs/file.c | 21 ++--- > 1 fi

Re: [f2fs-dev] [PATCH] f2fs: support compress extension update via sysfs interface

2024-02-20 Thread Jaegeuk Kim
On 02/21, Chao Yu wrote: > On 2024/2/21 3:28, Jaegeuk Kim wrote: > > On 02/19, Chao Yu wrote: > > > On 2024/2/8 8:07, Jaegeuk Kim wrote: > > > > On 02/07, Chao Yu wrote: > > > > > Introduce /sys/fs/f2fs//compress_extension to support > > > > > adding/deleting compress extension via sysfs interface,

Re: [f2fs-dev] [PATCH] f2fs: support compress extension update via sysfs interface

2024-02-20 Thread Chao Yu
On 2024/2/21 3:28, Jaegeuk Kim wrote: On 02/19, Chao Yu wrote: On 2024/2/8 8:07, Jaegeuk Kim wrote: On 02/07, Chao Yu wrote: Introduce /sys/fs/f2fs//compress_extension to support adding/deleting compress extension via sysfs interface, in comparison to mount option, it's more easy to use and le

Re: [f2fs-dev] [PATCH] f2fs: support compress extension update via sysfs interface

2024-02-20 Thread Jaegeuk Kim
On 02/19, Chao Yu wrote: > On 2024/2/8 8:07, Jaegeuk Kim wrote: > > On 02/07, Chao Yu wrote: > > > Introduce /sys/fs/f2fs//compress_extension to support > > > adding/deleting compress extension via sysfs interface, in > > > comparison to mount option, it's more easy to use and less > > > authority

Re: [f2fs-dev] [PATCH] f2fs: support compress extension update via sysfs interface

2024-02-18 Thread Chao Yu
On 2024/2/8 8:07, Jaegeuk Kim wrote: On 02/07, Chao Yu wrote: Introduce /sys/fs/f2fs//compress_extension to support adding/deleting compress extension via sysfs interface, in comparison to mount option, it's more easy to use and less authority issue for applications. Usage: - Query: cat /sys/fs

[f2fs-dev] [PATCH] f2fs: support SEEK_DATA and SEEK_HOLE for compression files

2024-02-15 Thread Daeho Jeong
From: Daeho Jeong Fix to support SEEK_DATA and SEEK_HOLE for compression files Signed-off-by: Daeho Jeong --- fs/f2fs/file.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 21c3aa93a8db..aa19d8bed479 100644 --- a/

Re: [f2fs-dev] [PATCH] f2fs: support compress extension update via sysfs interface

2024-02-07 Thread Jaegeuk Kim
On 02/07, Chao Yu wrote: > Introduce /sys/fs/f2fs//compress_extension to support > adding/deleting compress extension via sysfs interface, in > comparison to mount option, it's more easy to use and less > authority issue for applications. > > Usage: > - Query: cat /sys/fs/f2fs//compress_extension

[f2fs-dev] [PATCH] f2fs: support compress extension update via sysfs interface

2024-02-06 Thread Chao Yu
Introduce /sys/fs/f2fs//compress_extension to support adding/deleting compress extension via sysfs interface, in comparison to mount option, it's more easy to use and less authority issue for applications. Usage: - Query: cat /sys/fs/f2fs//compress_extension - Add: echo '[c|n]extension' > /sys/fs/

Re: [f2fs-dev] [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs

2024-01-26 Thread Eric Biggers
On Fri, Jan 26, 2024 at 01:32:05PM -0800, Luis Chamberlain wrote: > On Fri, Jan 26, 2024 at 09:01:06PM +, Matthew Wilcox wrote: > > On Thu, Jan 25, 2024 at 12:54:47PM -0800, Luis Chamberlain wrote: > > > On Thu, Jan 25, 2024 at 08:47:39PM +, Matthew Wilcox wrote: > > > > On Wed, Dec 07, 202

Re: [f2fs-dev] [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs

2024-01-26 Thread Luis Chamberlain
On Fri, Jan 26, 2024 at 09:01:06PM +, Matthew Wilcox wrote: > On Thu, Jan 25, 2024 at 12:54:47PM -0800, Luis Chamberlain wrote: > > On Thu, Jan 25, 2024 at 08:47:39PM +, Matthew Wilcox wrote: > > > On Wed, Dec 07, 2022 at 12:51:13PM -0800, Luis Chamberlain wrote: > > > > Me and Pankaj are v

Re: [f2fs-dev] [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs

2024-01-26 Thread Matthew Wilcox
On Thu, Jan 25, 2024 at 12:54:47PM -0800, Luis Chamberlain wrote: > On Thu, Jan 25, 2024 at 08:47:39PM +, Matthew Wilcox wrote: > > On Wed, Dec 07, 2022 at 12:51:13PM -0800, Luis Chamberlain wrote: > > > Me and Pankaj are very interested in helping on this front. And so we'll > > > start to org

Re: [f2fs-dev] [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs

2024-01-25 Thread Luis Chamberlain
On Thu, Jan 25, 2024 at 08:47:39PM +, Matthew Wilcox wrote: > On Wed, Dec 07, 2022 at 12:51:13PM -0800, Luis Chamberlain wrote: > > On Wed, Nov 30, 2022 at 03:18:41PM +, Matthew Wilcox wrote: > > > From a filesystem point of view, you need to ensure that you handle folios > > > larger than

Re: [f2fs-dev] [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs

2024-01-25 Thread Matthew Wilcox
On Wed, Dec 07, 2022 at 12:51:13PM -0800, Luis Chamberlain wrote: > On Wed, Nov 30, 2022 at 03:18:41PM +, Matthew Wilcox wrote: > > From a filesystem point of view, you need to ensure that you handle folios > > larger than PAGE_SIZE correctly. The easiest way is to spread the use > > of folios

[f2fs-dev] [PATCH] f2fs: support background_gc=adjust mount option

2023-05-18 Thread Chao Yu
As JuHyung reported in [1]: "In most consumer-grade blackbox SSDs, device-side GCs are handled automatically for various workloads. f2fs, however, leaves that responsibility to the userspace with conservative tuning on the kernel-side by default. Android handles this by init.rc tunings and a separ

Re: [f2fs-dev] [PATCH] f2fs: support to show noage_extent_cache mount option

2023-04-03 Thread Chao Yu
On 2023/4/4 1:40, Jaegeuk Kim wrote: On 03/31, Yangtao Li wrote: This patch support noage_extent_cache mount option. Signed-off-by: Yangtao Li --- Documentation/filesystems/f2fs.rst | 2 ++ fs/f2fs/super.c| 7 +++ 2 files changed, 9 insertions(+) diff --git a/Docum

Re: [f2fs-dev] [PATCH] f2fs: support to show noage_extent_cache mount option

2023-04-03 Thread Jaegeuk Kim
On 03/31, Yangtao Li wrote: > This patch support noage_extent_cache mount option. > > Signed-off-by: Yangtao Li > --- > Documentation/filesystems/f2fs.rst | 2 ++ > fs/f2fs/super.c| 7 +++ > 2 files changed, 9 insertions(+) > > diff --git a/Documentation/filesystems/f2fs

[f2fs-dev] [PATCH] f2fs: support to show noage_extent_cache mount option

2023-03-30 Thread Yangtao Li via Linux-f2fs-devel
This patch support noage_extent_cache mount option. Signed-off-by: Yangtao Li --- Documentation/filesystems/f2fs.rst | 2 ++ fs/f2fs/super.c| 7 +++ 2 files changed, 9 insertions(+) diff --git a/Documentation/filesystems/f2fs.rst b/Documentation/filesystems/f2fs.rst ind

[f2fs-dev] [PATCH] f2fs: support fault injection for f2fs_down_write_trylock()

2023-02-17 Thread Yangtao Li via Linux-f2fs-devel
This patch supports to inject fault into f2fs_down_write_trylock(). Usage: a) echo 524288 > /sys/fs/f2fs//inject_type or b) mount -o fault_type=524288 Signed-off-by: Yangtao Li --- Documentation/ABI/testing/sysfs-fs-f2fs | 1 + Documentation/filesystems/f2fs.rst | 1 + fs/f2fs/chec

Re: [f2fs-dev] [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs

2022-12-07 Thread Luis Chamberlain
On Wed, Nov 30, 2022 at 03:18:41PM +, Matthew Wilcox wrote: > On Wed, Nov 30, 2022 at 08:48:04PM +0800, Yangtao Li wrote: > > Hi, > > > > > Thanks for reviewing this. I think the real solution to this is > > > that f2fs should be using large folios. That way, the page cache > > > will keep t

Re: [f2fs-dev] [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs

2022-11-30 Thread Matthew Wilcox
On Wed, Nov 30, 2022 at 08:48:04PM +0800, Yangtao Li wrote: > Hi, > > > Thanks for reviewing this. I think the real solution to this is > > that f2fs should be using large folios. That way, the page cache > > will keep track of dirtiness on a per-folio basis, and if your folios > > are at least

Re: [f2fs-dev] [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs

2022-11-30 Thread Yangtao Li via Linux-f2fs-devel
Hi, > Thanks for reviewing this. I think the real solution to this is > that f2fs should be using large folios. That way, the page cache > will keep track of dirtiness on a per-folio basis, and if your folios > are at least as large as your cluster size, you won't need to do the > f2fs_prepare_c

Re: [f2fs-dev] [PATCH] f2fs: Support enhanced hot/cold data separation for f2fs

2022-11-28 Thread Yangtao Li via Linux-f2fs-devel
Hi qixiaoyu1, Thanks for your patchset. Does this patchset have data related to memory and performance impact? Can you provide scripts or commands for related tests? Thx, Yangtao ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.ne

Re: [f2fs-dev] [PATCH] f2fs: support fault injection for flush submission error

2022-11-09 Thread Matthew Wilcox
On Thu, Nov 10, 2022 at 02:35:49AM +0800, Yangtao Li wrote: > +++ b/fs/f2fs/segment.c > @@ -486,7 +486,17 @@ void f2fs_balance_fs_bg(struct f2fs_sb_info *sbi, bool > from_bg) > static int __submit_flush_wait(struct f2fs_sb_info *sbi, > struct block_device *bdev) > {

[f2fs-dev] [PATCH] f2fs: support fault injection for flush submission error

2022-11-09 Thread Yangtao Li via Linux-f2fs-devel
This patch supports to inject fault into __submit_flush_wait() to simulate flush cmd io error. Usage: a) echo 524288 > /sys/fs/f2fs//inject_type or b) mount -o fault_type=524288 Signed-off-by: Yangtao Li --- Documentation/filesystems/f2fs.rst | 1 + fs/f2fs/f2fs.h | 1 +

[f2fs-dev] [PATCH] f2fs: support fault injection for f2fs_is_valid_blkaddr()

2022-10-06 Thread Chao Yu
This patch supports to inject fault into f2fs_is_valid_blkaddr() to simulate accessing inconsistent data/meta block addressses from caller. Usage: a) echo 262144 > /sys/fs/f2fs//inject_type or b) mount -o fault_type=262144 Signed-off-by: Chao Yu --- Documentation/filesystems/f2fs.rst | 1 + f

[f2fs-dev] [PATCH] f2fs: support idmapped mounts

2022-02-03 Thread Chao Yu
This patch enables idmapped mounts for f2fs, since all dedicated helpers for this functionality existsm, so, in this patch we just pass down the user_namespace argument from the VFS methods to the relevant helpers. Simple idmap example on f2fs image: 1. truncate -s 128M f2fs.img 2. mkfs.f2fs f2fs

[f2fs-dev] [PATCH] f2fs: support fault injection to f2fs_trylock_op()

2021-12-12 Thread Chao Yu
f2fs: support fault injection for f2fs_trylock_op() This patch supports to inject fault into f2fs_trylock_op(). Usage: a) echo 65536 > /sys/fs/f2fs//inject_type or b) mount -o fault_type=65536 Signed-off-by: Chao Yu --- Documentation/filesystems/f2fs.rst | 1 + fs/f2fs/f2fs.h

[f2fs-dev] [PATCH] f2fs: support fault injection for dquot_initialize()

2021-10-28 Thread Chao Yu
This patch adds a new function f2fs_dquot_initialize() to wrap dquot_initialize(), and it supports to inject fault into f2fs_dquot_initialize() to simulate inner failure occurs in dquot_initialize(). Usage: a) echo 65536 > /sys/fs/f2fs//inject_type or b) mount -o fault_type=65536 Signed-off-by:

[f2fs-dev] [PATCH] f2fs: support cold file defragementation

2021-05-12 Thread Daejun Park
F2FS_IOC_DEFRAGMENT performs defragmentation of a file. In f2fs_defragment_range(), it checks whether in-place update policy is applied, for avoiding unnecessary write operations. The cold file may be fragmented according to the write order. However, in the case of a cold file, the in-place update

[f2fs-dev] [PATCH] f2fs: support read iostat

2020-04-16 Thread Chao Yu
Adds to support accounting read IOs from userspace/kernel. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c| 5 fs/f2fs/data.c | 6 + fs/f2fs/f2fs.h | 37 +++--- fs/f2fs/file.c | 12 - fs/f2fs/gc.c

[f2fs-dev] [PATCH] f2fs: support partial truncation on compressed inode

2020-03-13 Thread Chao Yu
Supports to truncate compressed/normal cluster partially on compressed inode. Signed-off-by: Chao Yu --- fs/f2fs/compress.c | 48 ++ fs/f2fs/f2fs.h | 2 ++ fs/f2fs/file.c | 19 +- 3 files changed, 64 insertions(+), 5 deletions(

[f2fs-dev] [PATCH] f2fs: support FS_IOC_{GET,SET}FSLABEL

2019-07-17 Thread Chao Yu
Support two generic fs ioctls FS_IOC_{GET,SET}FSLABEL, letting f2fs pass generic/492 testcase. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 3 ++ fs/f2fs/file.c | 78 ++ 2 files changed, 81 insertions(+) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.

[f2fs-dev] [PATCH] f2fs: support swap file w/ DIO

2019-07-03 Thread Jaegeuk Kim
Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 142 ++-- fs/f2fs/f2fs.h | 5 +- include/trace/events/f2fs.h | 11 +-- 3 files changed, 143 insertions(+), 15 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 1e2d924e2ea7.

[f2fs-dev] [PATCH] f2fs: support fault_type mount option

2018-08-08 Thread Chao Yu
Previously, once fault injection is on, by default, all kind of faults will be injected to f2fs, if we want to trigger single or specified combined type during the test, we need to configure sysfs entry, it will be a little inconvenient to integrate sysfs configuring into testsuit, such as xfstest.

[f2fs-dev] [PATCH] f2fs: support discard submission error injection

2018-08-06 Thread Chao Yu
This patch adds to support discard submission error injection for testing error handling of __submit_discard_cmd(). Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h| 1 + fs/f2fs/segment.c | 8 fs/f2fs/super.c | 1 + 3 files changed, 10 insertions(+) diff --git a/fs/f2fs/f2fs.h b/fs/f2f

[f2fs-dev] [PATCH] f2fs: support hot file extension

2018-02-27 Thread Chao Yu
This patch supports to recognize hot file extension in f2fs, so that we can allocate proper hot segment location for its data, which can lead to better hot/cold seperation in filesystem. In addition, we changes a bit on query/add/del operation method for extension_list sysfs entry as below: - Que

[f2fs-dev] [PATCH] f2fs: support inode creation time

2018-01-22 Thread Chao Yu
This patch adds creation time field in inode layout to support showing kstat.btime in ->statx. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 7 +++ fs/f2fs/file.c | 9 + fs/f2fs/inode.c | 16 fs/f2fs/namei.c | 3 ++- fs/f2fs/sysfs.c

[f2fs-dev] [PATCH] f2fs: support large nat bitmap

2018-01-15 Thread Chao Yu
Previously, we will store all nat version bitmap in checkpoint pack block, so our total node entry number has a limitation which caused total node number can not exceed (3900 * 8) block * 455 node/block = 14196000. So that once user wants to create more nodes in large size image, it becomes a bottl

[f2fs-dev] [PATCH] f2fs: support FIEMAP_FLAG_XATTR

2018-01-04 Thread Chao Yu
This patch enables ->fiemap to handle FIEMAP_FLAG_XATTR flag for xattr mapping info lookup purpose. It makes f2fs passing generic/425 test in fstest. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 65 ++ 1 file changed, 61 insertions(+), 4 de

[f2fs-dev] [PATCH] f2fs: support inode checksum

2017-07-26 Thread Chao Yu
From: Chao Yu This patch adds to support inode checksum in f2fs. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 31 fs/f2fs/inode.c | 64 + fs/f2fs/node.c | 2 ++ fs/f2fs/segment.c | 5 +++-

[f2fs-dev] [PATCH] f2fs: support journelled quota

2017-07-25 Thread Chao Yu
This patch supports to enable f2fs to accept quota information through mount option: - {usr,grp,prj}jquota= - jqfmt= Then, in ->mount flow, we can recover quota file during log replaying, by this, journelled quota can be supported. Signed-off-by: Chao Yu --- Documentation/filesystems/f2fs.txt |

Re: [f2fs-dev] [PATCH] f2fs: support plain user/group quota

2017-07-08 Thread Chao Yu
Hi Jaegeuk, On 2017/7/8 3:12, Jaegeuk Kim wrote: > Hi Chao, > > I've updated your patch like this. > > - modify description > - use filemap_write_and_wait() directly aligned to the below v2 patch. > > f2fs: avoid deadlock caused by lock order of page and Looks good to me. I've updated doc

Re: [f2fs-dev] [PATCH] f2fs: support plain user/group quota

2017-07-07 Thread Jaegeuk Kim
Hi Chao, I've updated your patch like this. - modify description - use filemap_write_and_wait() directly aligned to the below v2 patch. f2fs: avoid deadlock caused by lock order of page and Thanks, >From 4aa1d70e8e7767712733dc79147030aa682ee9ef Mon Sep 17 00:00:00 2001 From: Chao Yu Date:

[f2fs-dev] [PATCH] f2fs: support plain user/group quota

2017-07-06 Thread Chao Yu
From: Chao Yu This patch adds to support plain user/group quota. - setattr() calls dquot_transfer which will transfer inode->i_blocks. We can't reclaim that during f2fs_evict_inode(). So, we need to count node blocks as well in order to match i_blocks with dquot's space. - in f2fs_remount,

Re: [f2fs-dev] [PATCH] F2FS support

2017-05-04 Thread Adam Borowski
On Thu, May 04, 2017 at 11:12:40AM -0700, Jaegeuk Kim wrote: > "F2FS (Flash-Friendly File System) is flash-friendly file system which was > merged > into Linux kernel v3.8 in 2013. > > The motive for F2FS was to build a file system that from the start, takes into > account the characteristics of

[f2fs-dev] [PATCH] F2FS support

2017-05-04 Thread Jaegeuk Kim
"F2FS (Flash-Friendly File System) is flash-friendly file system which was merged into Linux kernel v3.8 in 2013. The motive for F2FS was to build a file system that from the start, takes into account the characteristics of NAND flash memory-based storage devices (such as solid-state disks, eMMC,

Re: [f2fs-dev] [PATCH] f2fs: support multiple devices

2016-11-10 Thread Anand Jain
(this is deviating from the subject, sorry about that) > Pretty much, if you're using just raid1 mode, without > compression, on reasonable storage devices, things are rock-solid > relative to the rest of BTRFS. IMO, BTRFS volume manger feature is incomplete and there is RAID1 critical bug whi

Re: [f2fs-dev] [PATCH] f2fs: support multiple devices

2016-11-10 Thread Austin S. Hemmelgarn
On 2016-11-09 21:29, Qu Wenruo wrote: > > > At 11/10/2016 06:57 AM, Andreas Dilger wrote: >> On Nov 9, 2016, at 1:56 PM, Jaegeuk Kim wrote: >>> >>> This patch implements multiple devices support for f2fs. >>> Given multiple devices by mkfs.f2fs, f2fs shows them entirely as one big >>> volume under

Re: [f2fs-dev] [PATCH] f2fs: support multiple devices

2016-11-09 Thread Qu Wenruo
At 11/10/2016 06:57 AM, Andreas Dilger wrote: > On Nov 9, 2016, at 1:56 PM, Jaegeuk Kim wrote: >> >> This patch implements multiple devices support for f2fs. >> Given multiple devices by mkfs.f2fs, f2fs shows them entirely as one big >> volume under one f2fs instance. >> >> Internal block manage

Re: [f2fs-dev] [PATCH] f2fs: support multiple devices

2016-11-09 Thread Jaegeuk Kim
On Wed, Nov 09, 2016 at 03:57:53PM -0700, Andreas Dilger wrote: > On Nov 9, 2016, at 1:56 PM, Jaegeuk Kim wrote: > > > > This patch implements multiple devices support for f2fs. > > Given multiple devices by mkfs.f2fs, f2fs shows them entirely as one big > > volume under one f2fs instance. > > >

Re: [f2fs-dev] [PATCH] f2fs: support multiple devices

2016-11-09 Thread Darrick J. Wong
On Wed, Nov 09, 2016 at 03:57:53PM -0700, Andreas Dilger wrote: > On Nov 9, 2016, at 1:56 PM, Jaegeuk Kim wrote: > > > > This patch implements multiple devices support for f2fs. > > Given multiple devices by mkfs.f2fs, f2fs shows them entirely as one big > > volume under one f2fs instance. > > >

[f2fs-dev] [PATCH] f2fs: support multiple devices

2016-11-09 Thread Jaegeuk Kim
This patch implements multiple devices support for f2fs. Given multiple devices by mkfs.f2fs, f2fs shows them entirely as one big volume under one f2fs instance. Internal block management is very simple, but we will modify block allocation and background GC policy to boost IO speed by exploiting t

[f2fs-dev] [PATCH] f2fs: support configuring fault injection per superblock

2016-09-23 Thread Chao Yu
From: Chao Yu Previously, we only support global fault injection configuration, so that when we configure type/rate of fault injection through sysfs, mount option, it will influence all f2fs partition which is being used. It is not make sence, since it will be not convenient if developer want to

[f2fs-dev] [PATCH] f2fs: support async discard

2016-08-29 Thread Chao Yu
From: Chao Yu Like most filesystems, f2fs will issue discard command synchronously, so when user trigger fstrim through ioctl, multiple discard commands will be issued serially with sync mode, which makes poor performance. In this patch we try to support async discard, so that all discard comman

Re: [f2fs-dev] [PATCH] f2fs: support access control via key management

2016-03-21 Thread Christoph Hellwig
On Tue, Mar 15, 2016 at 09:37:25AM -0700, Jaegeuk Kim wrote: > I agree that I must follow FS convention here. > But, in order to make this clear out, could you please elaborate why this is > not > allowed? > > I wrote this patch totally based on per-file encryption in which users cannot > access

Re: [f2fs-dev] [PATCH] f2fs: support access control via key management

2016-03-15 Thread Jaegeuk Kim
Hello, On Tue, Mar 15, 2016 at 12:24:22AM -0700, Christoph Hellwig wrote: > On Wed, Mar 09, 2016 at 04:52:48PM -0800, Jaegeuk Kim wrote: > > Through this patch, user can assign its key into a specific normal files. > > Then, other users who do not have that key cannot open the files. > > Later, ow

Re: [f2fs-dev] [PATCH] f2fs: support access control via key management

2016-03-15 Thread Christoph Hellwig
On Wed, Mar 09, 2016 at 04:52:48PM -0800, Jaegeuk Kim wrote: > Through this patch, user can assign its key into a specific normal files. > Then, other users who do not have that key cannot open the files. > Later, owner can drop its key from the files for other users to access > the files again. N

[f2fs-dev] [PATCH] f2fs: support access control via key management

2016-03-09 Thread Jaegeuk Kim
Through this patch, user can assign its key into a specific normal files. Then, other users who do not have that key cannot open the files. Later, owner can drop its key from the files for other users to access the files again. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 20

Re: [f2fs-dev] [PATCH] f2fs: support file defragment

2015-10-26 Thread Jaegeuk Kim
Hi, On Fri, Oct 23, 2015 at 02:57:03PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Friday, October 23, 2015 2:12 AM > > To: Chao Yu > > Cc: linux-f2fs-devel@lists.sourceforge.net; linux-ker...@vger.kernel.org > >

Re: [f2fs-dev] [PATCH] f2fs: support file defragment

2015-10-22 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Friday, October 23, 2015 2:12 AM > To: Chao Yu > Cc: linux-f2fs-devel@lists.sourceforge.net; linux-ker...@vger.kernel.org > Subject: Re: [PATCH] f2fs: support file defragment > > Hi, > > On Thu, Oct

Re: [f2fs-dev] [PATCH] f2fs: support file defragment

2015-10-22 Thread Jaegeuk Kim
Hi, On Thu, Oct 22, 2015 at 07:59:14PM +0800, Chao Yu wrote: > This patch introduces a new ioctl F2FS_IOC_DEFRAGMENT to support file > defragment in a specified range of regular file. > > This ioctl can be used in very limited workload: if user expects high > sequential read performance in random

[f2fs-dev] [PATCH] f2fs: support file defragment

2015-10-22 Thread Chao Yu
This patch introduces a new ioctl F2FS_IOC_DEFRAGMENT to support file defragment in a specified range of regular file. This ioctl can be used in very limited workload: if user expects high sequential read performance in randomly written file, this interface can be used for defragmentation, after t

Re: [f2fs-dev] [PATCH] F2FS support

2015-04-03 Thread Jaegeuk Kim
Hi Andrei, On Sat, Mar 28, 2015 at 10:31:55AM +0300, Andrei Borzenkov wrote: > В Tue, 24 Mar 2015 01:19:00 -0700 > Jaegeuk Kim пишет: > ... > > +/* byte-size offset */ > > +#define F2FS_SUPER_OFFSET 1024 > > + > > +/* 12 bits for 4096 bytes */ > > +#define F2FS_MAX_LOG_SECTOR_SIZE 1

Re: [f2fs-dev] [PATCH] F2FS support

2015-03-28 Thread Andrei Borzenkov
В Sat, 28 Mar 2015 13:43:18 -0700 Jaegeuk Kim пишет: > Hi Andrei, > > On Sat, Mar 28, 2015 at 10:31:55AM +0300, Andrei Borzenkov wrote: > > В Tue, 24 Mar 2015 01:19:00 -0700 > > Jaegeuk Kim пишет: > > > > > * Makefile.util.def: Add f2fs.c. > > > * doc/grub.texi: Add f2fs description. > > >

Re: [f2fs-dev] [PATCH] F2FS support

2015-03-28 Thread Jaegeuk Kim
Hi Andrei, On Sat, Mar 28, 2015 at 10:31:55AM +0300, Andrei Borzenkov wrote: > В Tue, 24 Mar 2015 01:19:00 -0700 > Jaegeuk Kim пишет: > > > * Makefile.util.def: Add f2fs.c. > > * doc/grub.texi: Add f2fs description. > > * grub-core/Makefile.core.def: Add f2fs module. > > * grub-core/fs/f2fs.

Re: [f2fs-dev] [PATCH] F2FS support

2015-03-28 Thread Andrei Borzenkov
В Tue, 24 Mar 2015 01:19:00 -0700 Jaegeuk Kim пишет: > * Makefile.util.def: Add f2fs.c. > * doc/grub.texi: Add f2fs description. > * grub-core/Makefile.core.def: Add f2fs module. > * grub-core/fs/f2fs.c: New file. > * tests/f2fs_test.in: New file. > * tests/util/grub-fs-tester.in: Add f2fs

[f2fs-dev] [PATCH] F2FS support

2015-03-24 Thread Jaegeuk Kim
* Makefile.util.def: Add f2fs.c. * doc/grub.texi: Add f2fs description. * grub-core/Makefile.core.def: Add f2fs module. * grub-core/fs/f2fs.c: New file. * tests/f2fs_test.in: New file. * tests/util/grub-fs-tester.in: Add f2fs requirements. Signed-off-by: Jaegeuk Kim --- ChangeLog-2015

[f2fs-dev] [PATCH] f2fs: support ->rename2()

2014-07-12 Thread Chao Yu
Now new interface ->rename2() is added to VFS, here are related description: https://lkml.org/lkml/2014/2/7/873 https://lkml.org/lkml/2014/2/7/758 This patch adds function f2fs_rename2() to support ->rename2() including handling both RENAME_EXCHANGE and RENAME_NOREPLACE flag. Signed-off-by: Chao

[f2fs-dev] [PATCH] f2fs: support ->tmpfile()

2014-06-19 Thread Chao Yu
Add function f2fs_tmpfile() to support O_TMPFILE file creation, and modify logic of init_inode_metadata to enable linkat temp file. Signed-off-by: Chao Yu --- fs/f2fs/dir.c | 10 - fs/f2fs/namei.c | 64 +++ 2 files changed, 73 ins

[f2fs-dev] [PATCH] f2fs: support f2fs_fiemap

2014-06-09 Thread Jaegeuk Kim
This patch links f2fs_fiemap with generic function with get_block. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 6 ++ fs/f2fs/f2fs.h | 1 + fs/f2fs/file.c | 1 + 3 files changed, 8 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 39fe7d7..c1fb6dd 100644 --- a/fs/f2fs/data