Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac2dc058 authored by Dave Chinner's avatar Dave Chinner Committed by Dave Chinner
Browse files

iomap: prepare iomap_fiemap for attribute mappings



By bassing through an -ENOENT, similar to the old XFS implementation of
FIEMAP_FLAG_XATTR.

Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
[hch: split from a larger patch]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent 8896b8f6
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -476,6 +476,9 @@ int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fi,
	while (len > 0) {
	while (len > 0) {
		ret = iomap_apply(inode, start, len, 0, ops, &ctx,
		ret = iomap_apply(inode, start, len, 0, ops, &ctx,
				iomap_fiemap_actor);
				iomap_fiemap_actor);
		/* inode with no (attribute) mapping will give ENOENT */
		if (ret == -ENOENT)
			break;
		if (ret < 0)
		if (ret < 0)
			return ret;
			return ret;
		if (ret == 0)
		if (ret == 0)