aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-07-04 10:54:47 -0400
committerBen Myers <bpm@sgi.com>2012-07-29 17:00:31 -0400
commit08358906ed78f6ab4d3ff8e4fd1b87b9a4aea645 (patch)
tree47884ad2cba2ede418c6f4716c778c9d6ec88e81 /fs/xfs/xfs_inode.c
parentf2ecc5e453134a13c3b2b0f2cac52ab2d5c540d7 (diff)
xfs: remove the alloc_done argument to xfs_dialloc
We can simplify check the IO_agbp pointer for being non-NULL instead of passing another argument through two layers of function calls. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index d48e406de078..5c10825f2f80 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -887,7 +887,6 @@ xfs_ialloc(
887 prid_t prid, 887 prid_t prid,
888 int okalloc, 888 int okalloc,
889 xfs_buf_t **ialloc_context, 889 xfs_buf_t **ialloc_context,
890 boolean_t *call_again,
891 xfs_inode_t **ipp) 890 xfs_inode_t **ipp)
892{ 891{
893 xfs_ino_t ino; 892 xfs_ino_t ino;
@@ -902,10 +901,10 @@ xfs_ialloc(
902 * the on-disk inode to be allocated. 901 * the on-disk inode to be allocated.
903 */ 902 */
904 error = xfs_dialloc(tp, pip ? pip->i_ino : 0, mode, okalloc, 903 error = xfs_dialloc(tp, pip ? pip->i_ino : 0, mode, okalloc,
905 ialloc_context, call_again, &ino); 904 ialloc_context, &ino);
906 if (error) 905 if (error)
907 return error; 906 return error;
908 if (*call_again || ino == NULLFSINO) { 907 if (*ialloc_context || ino == NULLFSINO) {
909 *ipp = NULL; 908 *ipp = NULL;
910 return 0; 909 return 0;
911 } 910 }