linux/fs/xfs/libxfs
Eric Sandeen 94f3cad555 xfs: check resblks before calling xfs_dir_canenter
Move the resblks test out of the xfs_dir_canenter,
and into the caller.

This makes a little more sense on the face of it;
xfs_dir_canenter immediately returns if resblks !=0;
and given some of the comments preceding the calls:

 * Check for ability to enter directory entry, if no space reserved.

even more so.

It also facilitates the next patch.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
2014-09-09 11:57:52 +10:00
..
xfs_ag.h
xfs_alloc_btree.c
xfs_alloc_btree.h
xfs_alloc.c xfs: add a few more verifier tests 2014-09-09 11:47:24 +10:00
xfs_alloc.h
xfs_attr_leaf.c
xfs_attr_leaf.h
xfs_attr_remote.c
xfs_attr_remote.h
xfs_attr_sf.h
xfs_attr.c
xfs_bit.h
xfs_bmap_btree.c xfs: require 64-bit sector_t 2014-07-30 09:12:05 +10:00
xfs_bmap_btree.h
xfs_bmap.c Merge branch 'xfs-misc-fixes-3.17-1' into for-next 2014-08-04 13:54:14 +10:00
xfs_bmap.h
xfs_btree.c Merge branch 'xfs-misc-fixes-3.17-1' into for-next 2014-08-04 13:54:14 +10:00
xfs_btree.h xfs: require 64-bit sector_t 2014-07-30 09:12:05 +10:00
xfs_cksum.h
xfs_da_btree.c xfs: require 64-bit sector_t 2014-07-30 09:12:05 +10:00
xfs_da_btree.h
xfs_da_format.c
xfs_da_format.h
xfs_dinode.h
xfs_dir2_block.c
xfs_dir2_data.c
xfs_dir2_leaf.c
xfs_dir2_node.c
xfs_dir2_priv.h
xfs_dir2_sf.c xfs: require 64-bit sector_t 2014-07-30 09:12:05 +10:00
xfs_dir2.c xfs: check resblks before calling xfs_dir_canenter 2014-09-09 11:57:52 +10:00
xfs_dir2.h xfs: check resblks before calling xfs_dir_canenter 2014-09-09 11:57:52 +10:00
xfs_dquot_buf.c
xfs_format.h xfs: require 64-bit sector_t 2014-07-30 09:12:05 +10:00
xfs_ialloc_btree.c
xfs_ialloc_btree.h
xfs_ialloc.c xfs: add a few more verifier tests 2014-09-09 11:47:24 +10:00
xfs_ialloc.h
xfs_inode_buf.c
xfs_inode_buf.h
xfs_inode_fork.c xfs: require 64-bit sector_t 2014-07-30 09:12:05 +10:00
xfs_inode_fork.h
xfs_inum.h xfs: require 64-bit sector_t 2014-07-30 09:12:05 +10:00
xfs_log_format.h xfs: require 64-bit sector_t 2014-07-30 09:12:05 +10:00
xfs_log_recover.h
xfs_log_rlimit.c
xfs_quota_defs.h
xfs_rtbitmap.c
xfs_sb.c xfs: add a few more verifier tests 2014-09-09 11:47:24 +10:00
xfs_sb.h xfs: require 64-bit sector_t 2014-07-30 09:12:05 +10:00
xfs_shared.h
xfs_symlink_remote.c
xfs_trans_resv.c
xfs_trans_resv.h
xfs_trans_space.h