diff options
Diffstat (limited to 'kernel/fs/xfs/xfs_filestream.c')
-rw-r--r-- | kernel/fs/xfs/xfs_filestream.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/fs/xfs/xfs_filestream.c b/kernel/fs/xfs/xfs_filestream.c index da82f1cb4..c4c130f9b 100644 --- a/kernel/fs/xfs/xfs_filestream.c +++ b/kernel/fs/xfs/xfs_filestream.c @@ -196,7 +196,8 @@ xfs_filestream_pick_ag( goto next_ag; } - longest = xfs_alloc_longest_free_extent(mp, pag); + longest = xfs_alloc_longest_free_extent(mp, pag, + xfs_alloc_min_freelist(mp, pag)); if (((minlen && longest >= minlen) || (!minlen && pag->pagf_freeblks >= minfree)) && (!pag->pagf_metadata || !(flags & XFS_PICK_USERDATA) || |