mm/swapfile.c: fix a comment in sys_swapon()
Subsystems (2)
[email protected]
maintainerPATCH 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.
Signed-off-by Christoph Hellwig <[email protected]>
Reviewed-by Andrew Morton <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
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;
_