summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_node.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-08-12 20:49:44 +1000
committerBen Myers <bpm@sgi.com>2013-08-12 16:52:54 -0500
commit836a94ad59bf6c1bcea0fdbe945540926fa3ca8b (patch)
treebd07140aeec5f0e62b44ae20ecbf62914b42b038 /fs/xfs/xfs_dir2_node.c
parentc5c249b42464cbcda3ac5cbdc114f6a6d5b0b7ac (diff)
downloadlinux-836a94ad59bf6c1bcea0fdbe945540926fa3ca8b.tar.gz
linux-836a94ad59bf6c1bcea0fdbe945540926fa3ca8b.tar.bz2
linux-836a94ad59bf6c1bcea0fdbe945540926fa3ca8b.zip
xfs: fix issues that cause userspace warnings
Some of the code shared with userspace causes compilation warnings from things turned off in the kernel code, such as differences in variable signedness. Fix those issues. Signed-off-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_dir2_node.c')
-rw-r--r--fs/xfs/xfs_dir2_node.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_dir2_node.c b/fs/xfs/xfs_dir2_node.c
index b4bd9b6e93f9..18e287deee66 100644
--- a/fs/xfs/xfs_dir2_node.c
+++ b/fs/xfs/xfs_dir2_node.c
@@ -313,11 +313,13 @@ xfs_dir2_free_log_header(
struct xfs_trans *tp,
struct xfs_buf *bp)
{
+#ifdef DEBUG
xfs_dir2_free_t *free; /* freespace structure */
free = bp->b_addr;
ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) ||
free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC));
+#endif
xfs_trans_log_buf(tp, bp, 0, xfs_dir3_free_hdr_size(tp->t_mountp) - 1);
}