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)
commit5416034f7acf9ead993198dcfb1df7e0b0b8436a
treec7470b0cf3a82edbd540821125c5f6d5e7524e8e
parent19fd2df5b1167eeb6ae8912cdfe9532e3b2c8bbe
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