diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-08-12 20:49:44 +1000 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-08-12 16:52:54 -0500 |
commit | 836a94ad59bf6c1bcea0fdbe945540926fa3ca8b (patch) | |
tree | bd07140aeec5f0e62b44ae20ecbf62914b42b038 /fs/xfs/xfs_dir2_node.c | |
parent | c5c249b42464cbcda3ac5cbdc114f6a6d5b0b7ac (diff) | |
download | op-kernel-dev-836a94ad59bf6c1bcea0fdbe945540926fa3ca8b.zip op-kernel-dev-836a94ad59bf6c1bcea0fdbe945540926fa3ca8b.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_dir2_node.c b/fs/xfs/xfs_dir2_node.c index b4bd9b6..18e287d 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); } |