]> git.baikalelectronics.ru Git - kernel.git/commit
mm: set S_SWAPFILE on blockdev swap devices
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 20 Aug 2019 14:55:16 +0000 (07:55 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 20 Aug 2019 14:55:16 +0000 (07:55 -0700)
commitb272d0ffc4b54bef1989509f7341265e9e221196
tree712132e4734b88a780b7b0941ae57f326f7e24b2
parentbfe2de5a355e71917b08e947fe3e805ec2f51c71
mm: set S_SWAPFILE on blockdev swap devices

Set S_SWAPFILE on block device inodes so that they have the same
protections as a swap flie.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
mm/swapfile.c