]> git.baikalelectronics.ru Git - kernel.git/commit
fs: move ramfs_aops to libfs
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Jun 2021 02:36:09 +0000 (19:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Jun 2021 17:53:48 +0000 (10:53 -0700)
commit3e178770dd1a75c415aa2f5164ae596a208e76e9
tree1b84ab33db10bade1b6e47429080062f5fff7f4c
parent6eec44cc38bccc5ffa29ce5cc433d7d4b4837923
fs: move ramfs_aops to libfs

Move the ramfs aops to libfs and reuse them for kernfs and configfs.
Thosw two did not wire up ->set_page_dirty before and now get
__set_page_dirty_no_writeback, which is the right one for no-writeback
address_space usage.

Drop the now unused exports of the libfs helpers only used for ramfs-style
pagecache usage.

Link: https://lkml.kernel.org/r/20210614061512.3966143-3-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/configfs/inode.c
fs/kernfs/inode.c
fs/libfs.c
fs/ramfs/inode.c
include/linux/fs.h