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)
commit06a70305812c3973c66824f26223656283c59b27
treebdab69960e2153f131fe138992e525e5abf6360c
parent86544fbd853c49a9eccb3d0f4e7eb9317f3fccf9
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