btrfs: move btrfs_page_mkwrite() from inode.c into file.c
authorFilipe Manana <fdmanana@suse.com>
Wed, 10 Apr 2024 11:36:51 +0000 (12:36 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:03 +0000 (21:31 +0200)
commit0ddefc2a7ce4be261a4ac3dffdca4a2ee9b716af
treea88d9ddbc731b8ff305848d5e5f411864bd7e664
parent590e2c4a1e82cd9b878bdaa70ab54026d0165bbc
btrfs: move btrfs_page_mkwrite() from inode.c into file.c

btrfs_page_mkwrite() is a struct vm_operations_struct callback and we
define that structure in file.c. Currently the function is in inode.c and
has to be exported to be used in file.c, which makes no sense because it's
not used anywhere else. So move btrfs_page_mkwrite() from inode.c and into
file.c.

While at it do a few minor style changes:

1) Capitalize the first word of every comment and end each sentence with
   punctuation;

2) Avoid splitting some statements into two lines when everything fits in
   85 characters or less.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/file.c
fs/btrfs/inode.c