]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/xfs/xfs_reflink.c
ext4: fix race between writepages and enabling EXT4_EXTENTS_FL
[linux.git] / fs / xfs / xfs_reflink.c
index e723b267a24789e1fc3c49edf559b7667c838e61..b0ce04ffd3cd2ddeebc6db96dce35d61cd6413da 100644 (file)
@@ -143,8 +143,6 @@ xfs_reflink_find_shared(
        error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp);
        if (error)
                return error;
-       if (!agbp)
-               return -ENOMEM;
 
        cur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno);