diff mbox

[01/10] Btrfs: remove stale comment referencing vmtruncate()

Message ID d50e22690bdea060f485ac1dc19a54fa4d6e4411.1525932796.git.osandov@fb.com (mailing list archive)
State New, archived
Headers show

Commit Message

Omar Sandoval May 10, 2018, 6:21 a.m. UTC
From: Omar Sandoval <osandov@fb.com>

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

Signed-off-by: Omar Sandoval <osandov@fb.com>
 fs/btrfs/inode.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox


diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index d241285a0d2a..fef8dbb6a93f 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -5106,7 +5106,6 @@  static int btrfs_setsize(struct inode *inode, struct iattr *attr)
 		if (ret)
 			return ret;
-		/* we don't support swapfiles, so vmtruncate shouldn't fail */
 		truncate_setsize(inode, newsize);
 		/* Disable nonlocked read DIO to avoid the end less truncate */