Skip to contentSkip to conversation

mm/swapfile.c: fix a comment in sys_swapon()

PATCH New [email protected] 1 participant 1 message Feb 21, 2020

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 9/15 mm/swapfile.c: fix a comment in sys_swapon()

From: Christoph Hellwig <[email protected]>
Subject: mm/swapfile.c: fix a comment in sys_swapon()

claim_swapfile now always takes i_rwsem.

---

 mm/swapfile.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swapfile.c renamed from mm/swapfile.c~mm-fix-a-comment-in-sys_swapon +1 -1
@@ -3157,7 +3157,7 @@ SYSCALL_DEFINE2(swapon, const char __use
 	mapping = swap_file->f_mapping;
 	inode = mapping->host;
 
-	/* If S_ISREG(inode->i_mode) will do inode_lock(inode); */
+	/* will take i_rwsem; */
 	error = claim_swapfile(p, inode);
 	if (unlikely(error))
 		goto bad_swap;

_