xfs: use correct log reservation when handling ENOSPC in xfs_create
authorChristoph Hellwig <hch@infradead.org>
Wed, 9 Sep 2009 23:19:02 +0000 (18:19 -0500)
committerAlex Elder <aelder@sgi.com>
Wed, 9 Sep 2009 23:19:02 +0000 (18:19 -0500)
commit4734d401d43c6469d568caf223d37aa0fc1bf4dc
treed73cbfd3537a5681ab5523e320a55b240b2fdd72
parent988abe4075e5748d9f7c79d9dfffa0cf5291611b
xfs: use correct log reservation when handling ENOSPC in xfs_create

We added the ENOSPC handling patch in xfs_create just after it got mered
with xfs_mkdir.  Change the log reservation to the variable for either
the create or mkdir value so it does the right thing if get here for creating
a directory.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_vnodeops.c