Commit fed98ef4 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds
Browse files

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

parent 0ef82fce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3157,7 +3157,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;