xfs: combine xfs_dir_canenter into xfs_dir_createname
authorEric Sandeen <sandeen@sandeen.net>
Tue, 9 Sep 2014 01:58:07 +0000 (11:58 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 9 Sep 2014 01:58:07 +0000 (11:58 +1000)
commitb16ed7c114b8cca45fa87b675c431f43ff90c179
tree21eec93b0e68a5377e4e946eda8b399581345774
parent94f3cad555d66048906deade06a764f7ea2c6e4d
xfs: combine xfs_dir_canenter into xfs_dir_createname

xfs_dir_canenter and xfs_dir_createname are
almost identical.

Fold the former into the latter, with a helpful
wrapper for the former.  If createname is called without
an inode number, it now only checks for space, and does
not actually add the entry.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_dir2.c