]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: fix to set atomic write status more clear
authorChao Yu <chao@kernel.org>
Thu, 27 Mar 2025 05:56:06 +0000 (13:56 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 10 Apr 2025 03:59:58 +0000 (03:59 +0000)
commitdb03c20c0850dc8d2bcabfa54b9438f7d666c863
treed7c5532d34acfd2f030ac76f6994804b020c8eda
parent2be96c2147e25d5845c1b06dc20521ab9e0eeeb0
f2fs: fix to set atomic write status more clear

1. After we start atomic write in a database file, before committing
all data, we'd better not set inode w/ vfs dirty status to avoid
redundant updates, instead, we only set inode w/ atomic dirty status.

2. After we commit all data, before committing metadata, we need to
clear atomic dirty status, and set vfs dirty status to allow vfs flush
dirty inode.

Cc: Daeho Jeong <daehojeong@google.com>
Reported-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/inode.c
fs/f2fs/segment.c
fs/f2fs/super.c