> - swap_file = file_open_name(name, O_RDWR|O_LARGEFILE, 0); > + swap_file = file_open_name(name, O_RDWR|O_LARGEFILE|O_EXCL, 0); Can you add the proper whitespaces here while you touch it? Otherwise looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>