]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
xfs: remove XFS_TRANS_RESERVE in collapse range
authorNamjae Jeon <namjae.jeon@samsung.com>
Mon, 19 May 2014 22:15:57 +0000 (08:15 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 19 May 2014 22:15:57 +0000 (08:15 +1000)
commitce576f1c5688caade085ae9bba729e886b7ab1d9
tree98a311627fbe288570fb1146959add47338e8453
parentd6d211db37e75de2ddc3a4f979038c40df7cc79c
xfs: remove XFS_TRANS_RESERVE in collapse range

There is no need to dip into reserve pool. Reserve pool is used for much
more important things. And xfs_trans_reserve will never return ENOSPC
because punch hole is already done. If we get ENOSPC, collapse range
will be simply failed.

Cc: Brian Foster <bfoster@redhat.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_bmap_util.c