fs: remove noop_set_page_dirty()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 29 Jun 2021 02:36:27 +0000 (19:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Jun 2021 17:53:48 +0000 (10:53 -0700)
commitb82a96c9253333a8834b2df5f262a39cccf4f6c7
treeed5349c06bc3353aac0a34c75be504acac0decf4
parentfc50eee3291556d623b64bb4b1dc345b971e184e
fs: remove noop_set_page_dirty()

Use __set_page_dirty_no_writeback() instead.  This will set the dirty bit
on the page, which will be used to avoid calling set_page_dirty() in the
future.  It will have no effect on actually writing the page back, as the
pages are not on any LRU lists.

[akpm@linux-foundation.org: export __set_page_dirty_no_writeback() to modules]

Link: https://lkml.kernel.org/r/20210615162342.1669332-6-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/dax/device.c
fs/ext2/inode.c
fs/ext4/inode.c
fs/fuse/dax.c
fs/libfs.c
fs/xfs/xfs_aops.c
include/linux/fs.h
mm/page-writeback.c