diff options
-rw-r--r-- | mm/swapfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index 60cd24a55204..9f46d83b4ece 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c | |||
@@ -926,7 +926,7 @@ add_swap_extent(struct swap_info_struct *sis, unsigned long start_page, | |||
926 | * requirements, they are simply tossed out - we will never use those blocks | 926 | * requirements, they are simply tossed out - we will never use those blocks |
927 | * for swapping. | 927 | * for swapping. |
928 | * | 928 | * |
929 | * For S_ISREG swapfiles we hold i_sem across the life of the swapon. This | 929 | * For S_ISREG swapfiles we set S_SWAPFILE across the life of the swapon. This |
930 | * prevents root from shooting her foot off by ftruncating an in-use swapfile, | 930 | * prevents root from shooting her foot off by ftruncating an in-use swapfile, |
931 | * which will scribble on the fs. | 931 | * which will scribble on the fs. |
932 | * | 932 | * |