selftests/seccomp: More closely track fds being assigned
[linux-2.6-microblaze.git] / fs / xfs / xfs_iomap.c
index d37d42e..d154f42 100644 (file)
@@ -159,7 +159,7 @@ xfs_iomap_eof_align_last_fsb(
        struct xfs_bmbt_irec    irec;
        struct xfs_iext_cursor  icur;
 
-       ASSERT(ifp->if_flags & XFS_IFEXTENTS);
+       ASSERT(!xfs_need_iread_extents(ifp));
 
        /*
         * Always round up the allocation request to the extent hint boundary.
@@ -667,7 +667,7 @@ xfs_ilock_for_iomap(
         * is an opencoded xfs_ilock_data_map_shared() call but with
         * non-blocking behaviour.
         */
-       if (!(ip->i_df.if_flags & XFS_IFEXTENTS)) {
+       if (xfs_need_iread_extents(&ip->i_df)) {
                if (flags & IOMAP_NOWAIT)
                        return -EAGAIN;
                mode = XFS_ILOCK_EXCL;