]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: prohibit refcounted swapfiles
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Nov 2016 22:13:10 +0000 (14:13 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 10 Dec 2016 20:39:45 +0000 (12:39 -0800)
commit83aece6143cb08c24a657e4affa19052d79d7444
treebdab69960e2153f131fe138992e525e5abf6360c
parent983ba5ab262f475890ed84e11bb42e384a6af6fc
ocfs2: prohibit refcounted swapfiles

The swapfile mechanism calls bmap once to find all the swap file
mappings, which means that we cannot properly support CoW remapping.
Therefore, error out if the swap code tries to call bmap on a
refcounted file.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/ocfs2/aops.c