]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xfs: BMAPX shouldn't barf on inline-format directories
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 12 May 2017 17:44:08 +0000 (10:44 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 16 May 2017 16:24:36 +0000 (09:24 -0700)
commit6eadbf4c8ba816c10d1c97bed9aa861d9fd17809
tree1189f50db3931a73e48232f2cba62a29a0e73c39
parent0daaecacb83bc6b656a56393ab77a31c28139bc7
xfs: BMAPX shouldn't barf on inline-format directories

When we're fulfilling a BMAPX request, jump out early if the data fork
is in local format.  This prevents us from hitting a debugging check in
bmapi_read and barfing errors back to userspace.  The on-disk extent
count check later isn't sufficient for IF_DELALLOC mode because da
extents are in memory and not on disk.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_bmap_util.c