]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix comment in btrfs_page_mkwrite
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 13 Dec 2016 20:15:19 +0000 (12:15 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 14:50:58 +0000 (15:50 +0100)
commitfdc94e80910843ec6ca7a6c89b04499879427020
treec7470b0cf3a82edbd540821125c5f6d5e7524e8e
parent0053ed9576b48f19fb5fa27c50d90dafc3953d02
Btrfs: fix comment in btrfs_page_mkwrite

The comment about "page_mkwrite gets called every time the page is
dirtied" in btrfs_page_mkwrite is not correct, it only gets called the
first time the page gets dirtied after the page faults in.

However, we don't need to touch the code because it works well, although
the proper logic is to check if delalloc bits has been set and if so, go
free reserved space, if not, set the delalloc bits for dirty page range.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c