mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-03 15:55:38 +00:00

Provide a netfs write helper, netfs_perform_write() to buffer data to be written in the pagecache and mark the modified folios dirty. It will perform "streaming writes" for folios that aren't currently resident, if possible, storing data in partially modified folios that are marked dirty, but not uptodate. It will also tag pages as belonging to fs-specific write groups if so directed by the filesystem. This is derived from generic_perform_write(), but doesn't use ->write_begin() and ->write_end(), having that logic rolled in instead. Signed-off-by: David Howells <dhowells@redhat.com> cc: Jeff Layton <jlayton@kernel.org> cc: linux-cachefs@redhat.com cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org
28 lines
492 B
Makefile
28 lines
492 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
netfs-y := \
|
|
buffered_read.o \
|
|
buffered_write.o \
|
|
io.o \
|
|
iterator.o \
|
|
locking.o \
|
|
main.o \
|
|
misc.o \
|
|
objects.o \
|
|
output.o
|
|
|
|
netfs-$(CONFIG_NETFS_STATS) += stats.o
|
|
|
|
netfs-$(CONFIG_FSCACHE) += \
|
|
fscache_cache.o \
|
|
fscache_cookie.o \
|
|
fscache_io.o \
|
|
fscache_main.o \
|
|
fscache_volume.o
|
|
|
|
ifeq ($(CONFIG_PROC_FS),y)
|
|
netfs-$(CONFIG_FSCACHE) += fscache_proc.o
|
|
endif
|
|
netfs-$(CONFIG_FSCACHE_STATS) += fscache_stats.o
|
|
|
|
obj-$(CONFIG_NETFS_SUPPORT) += netfs.o
|