aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/xfs_attr_remote.c8
-rw-r--r--fs/xfs/xfs_bmap.c3
-rw-r--r--fs/xfs/xfs_da_btree.c6
-rw-r--r--fs/xfs/xfs_dir2_node.c2
-rw-r--r--fs/xfs/xfs_ialloc.c2
-rw-r--r--fs/xfs/xfs_rtalloc.c4
6 files changed, 12 insertions, 13 deletions
diff --git a/fs/xfs/xfs_attr_remote.c b/fs/xfs/xfs_attr_remote.c
index b42926a5400d..712a502de619 100644
--- a/fs/xfs/xfs_attr_remote.c
+++ b/fs/xfs/xfs_attr_remote.c
@@ -239,7 +239,7 @@ xfs_attr_rmtval_copyout(
239 xfs_ino_t ino, 239 xfs_ino_t ino,
240 int *offset, 240 int *offset,
241 int *valuelen, 241 int *valuelen,
242 char **dst) 242 __uint8_t **dst)
243{ 243{
244 char *src = bp->b_addr; 244 char *src = bp->b_addr;
245 xfs_daddr_t bno = bp->b_bn; 245 xfs_daddr_t bno = bp->b_bn;
@@ -286,7 +286,7 @@ xfs_attr_rmtval_copyin(
286 xfs_ino_t ino, 286 xfs_ino_t ino,
287 int *offset, 287 int *offset,
288 int *valuelen, 288 int *valuelen,
289 char **src) 289 __uint8_t **src)
290{ 290{
291 char *dst = bp->b_addr; 291 char *dst = bp->b_addr;
292 xfs_daddr_t bno = bp->b_bn; 292 xfs_daddr_t bno = bp->b_bn;
@@ -339,7 +339,7 @@ xfs_attr_rmtval_get(
339 struct xfs_mount *mp = args->dp->i_mount; 339 struct xfs_mount *mp = args->dp->i_mount;
340 struct xfs_buf *bp; 340 struct xfs_buf *bp;
341 xfs_dablk_t lblkno = args->rmtblkno; 341 xfs_dablk_t lblkno = args->rmtblkno;
342 char *dst = args->value; 342 __uint8_t *dst = args->value;
343 int valuelen = args->valuelen; 343 int valuelen = args->valuelen;
344 int nmap; 344 int nmap;
345 int error; 345 int error;
@@ -403,7 +403,7 @@ xfs_attr_rmtval_set(
403 struct xfs_bmbt_irec map; 403 struct xfs_bmbt_irec map;
404 xfs_dablk_t lblkno; 404 xfs_dablk_t lblkno;
405 xfs_fileoff_t lfileoff = 0; 405 xfs_fileoff_t lfileoff = 0;
406 char *src = args->value; 406 __uint8_t *src = args->value;
407 int blkcnt; 407 int blkcnt;
408 int valuelen; 408 int valuelen;
409 int nmap; 409 int nmap;
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
index 1f09fafa07fa..a9331a6b36fb 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -4258,12 +4258,9 @@ __xfs_bmapi_allocate(
4258 struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork); 4258 struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork);
4259 int tmp_logflags = 0; 4259 int tmp_logflags = 0;
4260 int error; 4260 int error;
4261 int rt;
4262 4261
4263 ASSERT(bma->length > 0); 4262 ASSERT(bma->length > 0);
4264 4263
4265 rt = (whichfork == XFS_DATA_FORK) && XFS_IS_REALTIME_INODE(bma->ip);
4266
4267 /* 4264 /*
4268 * For the wasdelay case, we could also just allocate the stuff asked 4265 * For the wasdelay case, we could also just allocate the stuff asked
4269 * for in this bmap call but that wouldn't be as good. 4266 * for in this bmap call but that wouldn't be as good.
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c
index 8bbd7ef66ea8..d4e59a4ff59f 100644
--- a/fs/xfs/xfs_da_btree.c
+++ b/fs/xfs/xfs_da_btree.c
@@ -399,7 +399,7 @@ xfs_da3_split(
399 struct xfs_da_intnode *node; 399 struct xfs_da_intnode *node;
400 struct xfs_buf *bp; 400 struct xfs_buf *bp;
401 int max; 401 int max;
402 int action; 402 int action = 0;
403 int error; 403 int error;
404 int i; 404 int i;
405 405
@@ -2454,9 +2454,9 @@ static int
2454xfs_buf_map_from_irec( 2454xfs_buf_map_from_irec(
2455 struct xfs_mount *mp, 2455 struct xfs_mount *mp,
2456 struct xfs_buf_map **mapp, 2456 struct xfs_buf_map **mapp,
2457 unsigned int *nmaps, 2457 int *nmaps,
2458 struct xfs_bmbt_irec *irecs, 2458 struct xfs_bmbt_irec *irecs,
2459 unsigned int nirecs) 2459 int nirecs)
2460{ 2460{
2461 struct xfs_buf_map *map; 2461 struct xfs_buf_map *map;
2462 int i; 2462 int i;
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(
313 struct xfs_trans *tp, 313 struct xfs_trans *tp,
314 struct xfs_buf *bp) 314 struct xfs_buf *bp)
315{ 315{
316#ifdef DEBUG
316 xfs_dir2_free_t *free; /* freespace structure */ 317 xfs_dir2_free_t *free; /* freespace structure */
317 318
318 free = bp->b_addr; 319 free = bp->b_addr;
319 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || 320 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) ||
320 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); 321 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC));
322#endif
321 xfs_trans_log_buf(tp, bp, 0, xfs_dir3_free_hdr_size(tp->t_mountp) - 1); 323 xfs_trans_log_buf(tp, bp, 0, xfs_dir3_free_hdr_size(tp->t_mountp) - 1);
322} 324}
323 325
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index bd4e2a7b0928..266024b3668c 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -1342,7 +1342,7 @@ xfs_imap(
1342 xfs_agblock_t cluster_agbno; /* first block in inode cluster */ 1342 xfs_agblock_t cluster_agbno; /* first block in inode cluster */
1343 int error; /* error code */ 1343 int error; /* error code */
1344 int offset; /* index of inode in its buffer */ 1344 int offset; /* index of inode in its buffer */
1345 int offset_agbno; /* blks from chunk start to inode */ 1345 xfs_agblock_t offset_agbno; /* blks from chunk start to inode */
1346 1346
1347 ASSERT(ino != NULLFSINO); 1347 ASSERT(ino != NULLFSINO);
1348 1348
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c
index 084caa81bf1c..7a445e68c35b 100644
--- a/fs/xfs/xfs_rtalloc.c
+++ b/fs/xfs/xfs_rtalloc.c
@@ -736,8 +736,8 @@ xfs_rtallocate_range(
736{ 736{
737 xfs_rtblock_t end; /* end of the allocated extent */ 737 xfs_rtblock_t end; /* end of the allocated extent */
738 int error; /* error value */ 738 int error; /* error value */
739 xfs_rtblock_t postblock; /* first block allocated > end */ 739 xfs_rtblock_t postblock = 0; /* first block allocated > end */
740 xfs_rtblock_t preblock; /* first block allocated < start */ 740 xfs_rtblock_t preblock = 0; /* first block allocated < start */
741 741
742 end = start + len - 1; 742 end = start + len - 1;
743 /* 743 /*