nilfs: Convert nilfs_set_page_dirty() to nilfs_dirty_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 9 Feb 2022 20:22:11 +0000 (20:22 +0000)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 16 Mar 2022 17:36:47 +0000 (13:36 -0400)
commitaf7afdc7bbbe60cb6ce51a86b022d647e1a72717
treeece882246f97da4c96ddd1ddb8e0a62740c46c06
parent7e63df00cf5e609ebbee5ffbc3df1900d8a4443c
nilfs: Convert nilfs_set_page_dirty() to nilfs_dirty_folio()

The comment about the page always being locked is wrong, so copy
the locking protection from __set_page_dirty_buffers().  That
means moving the call to nilfs_set_file_dirty() down the
function so as to not acquire a new dependency between the
mapping->private_lock and the ns_inode_lock.  That might be a
harmless dependency to add, but it's not necessary.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Mike Marshall <hubcap@omnibond.com> # orangefs
Tested-by: David Howells <dhowells@redhat.com> # afs
fs/nilfs2/inode.c