commit | dc617f29dbe5ef0c8ced65ce62c464af1daaab3d | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Tue Aug 20 07:55:16 2019 -0700 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Tue Aug 20 07:55:16 2019 -0700 |
tree | 3596eb0d334f04f87088c735748bba8e66a71cad | |
parent | 1638045c36772b47a0765f7dca07cb90267e4942 [diff] |
vfs: don't allow writes to swap files Don't let userspace write to an active swap file because the kernel effectively has a long term lease on the storage and things could get seriously corrupted if we let this happen. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>