]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: update stale comments referencing vmtruncate()
authorOmar Sandoval <osandov@fb.com>
Fri, 11 May 2018 20:13:29 +0000 (13:13 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:23:43 +0000 (18:23 +0200)
commit696f46770c324bd5d2b568ef47aa4510526df4e1
tree0d517562b964ff877bcfacf6aa74e6fabb7bf1b4
parent5256f1522e09d04c8c7d192db8f2ab74c0ddf4db
Btrfs: update stale comments referencing vmtruncate()

Commit 6b7cc1dca5b3 ("Btrfs: convert to the new truncate sequence")
changed btrfs_setsize() to call truncate_setsize() instead of
vmtruncate() but didn't update the comment above it. truncate_setsize()
never fails (the IS_SWAPFILE() check happens elsewhere), so remove the
comment.

Additionally, the comment above btrfs_page_mkwrite() references
vmtruncate(), but truncate_setsize() does the size write and page
locking now.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c