diff --git a/mm/swapfile.c b/mm/swapfile.c index c03de4f1ee770222d588c731ab165ca5d7f482e2..074a724df169d5fd6cc39841f7c74f156e9a3edd 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -3259,7 +3259,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags) 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;