All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] xfsprogs: build fixes for 4.19.0-rc0
@ 2018-10-10  7:10 Dave Chinner
  2018-10-10  7:10 ` [PATCH 1/2] xfsprogs: document changes " Dave Chinner
  2018-10-10  7:10 ` [PATCH 2/2] xfsprogs: remove unused functions Dave Chinner
  0 siblings, 2 replies; 9+ messages in thread
From: Dave Chinner @ 2018-10-10  7:10 UTC (permalink / raw)
  To: linux-xfs

Hi Eric,

these are fixes for the build issues I just hit after updating my
source tree to the for-next branch.

-Dave.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/2] xfsprogs: document changes for 4.19.0-rc0
  2018-10-10  7:10 [PATCH 0/2] xfsprogs: build fixes for 4.19.0-rc0 Dave Chinner
@ 2018-10-10  7:10 ` Dave Chinner
  2018-10-10 13:46   ` Eric Sandeen
  2018-10-10 14:44   ` Darrick J. Wong
  2018-10-10  7:10 ` [PATCH 2/2] xfsprogs: remove unused functions Dave Chinner
  1 sibling, 2 replies; 9+ messages in thread
From: Dave Chinner @ 2018-10-10  7:10 UTC (permalink / raw)
  To: linux-xfs

From: Dave Chinner <dchinner@redhat.com>

Because 'make deb' breaks without them.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
 debian/changelog | 7 +++++++
 doc/CHANGES      | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 01639f9efeec..ef129e278948 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+xfsprogs (4.19.0-rc0-1) unstable; urgency=low
+
+  * New upstream pre-release
+  * Merge libxfs changes from kernel-4.19
+
+ -- Nathan Scott <nathans@debian.org>  Wed, 10 Oct 2018 17:52:48 +1100
+
 xfsprogs (4.18.0-1) unstable; urgency=low
 
   * New upstream release
diff --git a/doc/CHANGES b/doc/CHANGES
index 3c1e39469008..1c41bd90a1c5 100644
--- a/doc/CHANGES
+++ b/doc/CHANGES
@@ -1,3 +1,10 @@
+xfsprogs-4.18.0-rc0 (10 Oct 2018)
+	- Majority of 4.18 libxfs changes merged from kernel
+	- Big sparse static checker cleanup (Eric Sandeen)
+	- mkfs.xfs discard fixes (Jan Tulak)
+	- xfs_io readv/writev cleanup (Zorro Lang)
+	- libxfs transaction commit error checking (Darrick Wong)
+
 xfsprogs-4.18.0 (24 Aug 2018)
 	- Tweak SPDX license in xfs_cksum.h (Darrick Wong)
 
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/2] xfsprogs: remove unused functions
  2018-10-10  7:10 [PATCH 0/2] xfsprogs: build fixes for 4.19.0-rc0 Dave Chinner
  2018-10-10  7:10 ` [PATCH 1/2] xfsprogs: document changes " Dave Chinner
@ 2018-10-10  7:10 ` Dave Chinner
  2018-10-10 13:17   ` Carlos Maiolino
                     ` (2 more replies)
  1 sibling, 3 replies; 9+ messages in thread
From: Dave Chinner @ 2018-10-10  7:10 UTC (permalink / raw)
  To: linux-xfs

From: Dave Chinner <dchinner@redhat.com>

Clean up build warnings about defined by not used functions by
removing them.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
 libxfs/rdwr.c  |  8 -------
 libxfs/util.c  | 63 --------------------------------------------------
 repair/btree.c | 23 ------------------
 3 files changed, 94 deletions(-)

diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c
index 753b9396fbe5..e580aba1d7ee 100644
--- a/libxfs/rdwr.c
+++ b/libxfs/rdwr.c
@@ -544,14 +544,6 @@ libxfs_bcompare(struct cache_node *node, cache_key_t key)
 	return CACHE_MISS;
 }
 
-static void
-libxfs_bprint(xfs_buf_t *bp)
-{
-	fprintf(stderr, "Buffer %p blkno=%llu bytes=%u flags=0x%x count=%u\n",
-		bp, (unsigned long long)bp->b_bn, (unsigned)bp->b_bcount,
-		bp->b_flags, bp->b_node.cn_count);
-}
-
 static void
 __initbuf(xfs_buf_t *bp, struct xfs_buftarg *btp, xfs_daddr_t bno,
 		unsigned int bytes)
diff --git a/libxfs/util.c b/libxfs/util.c
index 993218615d00..ffd265094b4c 100644
--- a/libxfs/util.c
+++ b/libxfs/util.c
@@ -380,69 +380,6 @@ libxfs_ialloc(
 	return 0;
 }
 
-static void
-libxfs_iprint(
-	xfs_inode_t		*ip)
-{
-	struct xfs_icdinode	*dip;
-	xfs_extnum_t		i = 0;
-	struct xfs_ifork	*ifp;		/* inode fork pointer */
-	struct xfs_iext_cursor	icur;
-	xfs_bmbt_irec_t		rec;
-
-	printf("Inode %lx\n", (unsigned long)ip);
-	printf("    i_ino %llx\n", (unsigned long long)ip->i_ino);
-
-	if (ip->i_df.if_flags & XFS_IFEXTENTS)
-		printf("EXTENTS ");
-	printf("\n");
-	printf("    i_df.if_bytes %d\n", ip->i_df.if_bytes);
-	printf("    i_df.if_u1.if_root/if_data %lx\n",
-		(unsigned long)ip->i_df.if_u1.if_root);
-	if (ip->i_df.if_flags & XFS_IFEXTENTS) {
-		ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK);
-		for_each_xfs_iext(ifp, &icur, &rec) {
-			printf("\t%d: startoff %llu, startblock 0x%llx,"
-				" blockcount %llu, state %d\n",
-				i, (unsigned long long)rec.br_startoff,
-				(unsigned long long)rec.br_startblock,
-				(unsigned long long)rec.br_blockcount,
-				(int)rec.br_state);
-			i++;
-		}
-	}
-	printf("    i_df.if_broot %lx\n", (unsigned long)ip->i_df.if_broot);
-	printf("    i_df.if_broot_bytes %x\n", ip->i_df.if_broot_bytes);
-
-	dip = &ip->i_d;
-	printf("\nOn disk portion\n");
-	printf("    di_mode %o\n", VFS_I(ip)->i_mode);
-	printf("    di_version %x\n", (uint)dip->di_version);
-	switch (ip->i_d.di_format) {
-	case XFS_DINODE_FMT_LOCAL:
-		printf("    Inline inode\n");
-		break;
-	case XFS_DINODE_FMT_EXTENTS:
-		printf("    Extents inode\n");
-		break;
-	case XFS_DINODE_FMT_BTREE:
-		printf("    B-tree inode\n");
-		break;
-	default:
-		printf("    Other inode\n");
-		break;
-	}
-	printf("   di_nlink %x\n", VFS_I(ip)->i_nlink);
-	printf("   di_uid %d\n", dip->di_uid);
-	printf("   di_gid %d\n", dip->di_gid);
-	printf("   di_nextents %d\n", dip->di_nextents);
-	printf("   di_size %llu\n", (unsigned long long)dip->di_size);
-	printf("   di_gen %x\n", VFS_I(ip)->i_generation);
-	printf("   di_extsize %d\n", dip->di_extsize);
-	printf("   di_flags %x\n", dip->di_flags);
-	printf("   di_nblocks %llu\n", (unsigned long long)dip->di_nblocks);
-}
-
 /*
  * Writes a modified inode's changes out to the inode's on disk home.
  * Originally based on xfs_iflush_int() from xfs_inode.c in the kernel.
diff --git a/repair/btree.c b/repair/btree.c
index a402d0a67349..292fa518d019 100644
--- a/repair/btree.c
+++ b/repair/btree.c
@@ -444,29 +444,6 @@ btree_lookup_prev(
 	return value;
 }
 
-static void *
-btree_uncached_lookup(
-	struct btree_root	*root,
-	unsigned long		key)
-{
-	/* cursor-less (ie. uncached) lookup */
-	int			height = root->height - 1;
-	struct btree_node	*node = root->root_node;
-	int			i;
-	int			key_found = 0;
-
-	while (height >= 0) {
-		for (i = 0; i < node->num_keys; i++)
-			if (node->keys[i] >= key) {
-				key_found = node->keys[i] == key;
-				break;
-			}
-		node = node->ptrs[i];
-		height--;
-	}
-	return key_found ? node : NULL;
-}
-
 /* Update functions */
 
 static inline void
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/2] xfsprogs: remove unused functions
  2018-10-10  7:10 ` [PATCH 2/2] xfsprogs: remove unused functions Dave Chinner
@ 2018-10-10 13:17   ` Carlos Maiolino
  2018-10-10 13:48   ` Eric Sandeen
  2018-10-10 14:44   ` Darrick J. Wong
  2 siblings, 0 replies; 9+ messages in thread
From: Carlos Maiolino @ 2018-10-10 13:17 UTC (permalink / raw)
  To: Dave Chinner; +Cc: linux-xfs

On Wed, Oct 10, 2018 at 06:10:23PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
> 
> Clean up build warnings about defined by not used functions by
				defined but not used

> removing them.

otherwise looks good

Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>

> 
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
>  libxfs/rdwr.c  |  8 -------
>  libxfs/util.c  | 63 --------------------------------------------------
>  repair/btree.c | 23 ------------------
>  3 files changed, 94 deletions(-)
> 
> diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c
> index 753b9396fbe5..e580aba1d7ee 100644
> --- a/libxfs/rdwr.c
> +++ b/libxfs/rdwr.c
> @@ -544,14 +544,6 @@ libxfs_bcompare(struct cache_node *node, cache_key_t key)
>  	return CACHE_MISS;
>  }
>  
> -static void
> -libxfs_bprint(xfs_buf_t *bp)
> -{
> -	fprintf(stderr, "Buffer %p blkno=%llu bytes=%u flags=0x%x count=%u\n",
> -		bp, (unsigned long long)bp->b_bn, (unsigned)bp->b_bcount,
> -		bp->b_flags, bp->b_node.cn_count);
> -}
> -
>  static void
>  __initbuf(xfs_buf_t *bp, struct xfs_buftarg *btp, xfs_daddr_t bno,
>  		unsigned int bytes)
> diff --git a/libxfs/util.c b/libxfs/util.c
> index 993218615d00..ffd265094b4c 100644
> --- a/libxfs/util.c
> +++ b/libxfs/util.c
> @@ -380,69 +380,6 @@ libxfs_ialloc(
>  	return 0;
>  }
>  
> -static void
> -libxfs_iprint(
> -	xfs_inode_t		*ip)
> -{
> -	struct xfs_icdinode	*dip;
> -	xfs_extnum_t		i = 0;
> -	struct xfs_ifork	*ifp;		/* inode fork pointer */
> -	struct xfs_iext_cursor	icur;
> -	xfs_bmbt_irec_t		rec;
> -
> -	printf("Inode %lx\n", (unsigned long)ip);
> -	printf("    i_ino %llx\n", (unsigned long long)ip->i_ino);
> -
> -	if (ip->i_df.if_flags & XFS_IFEXTENTS)
> -		printf("EXTENTS ");
> -	printf("\n");
> -	printf("    i_df.if_bytes %d\n", ip->i_df.if_bytes);
> -	printf("    i_df.if_u1.if_root/if_data %lx\n",
> -		(unsigned long)ip->i_df.if_u1.if_root);
> -	if (ip->i_df.if_flags & XFS_IFEXTENTS) {
> -		ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK);
> -		for_each_xfs_iext(ifp, &icur, &rec) {
> -			printf("\t%d: startoff %llu, startblock 0x%llx,"
> -				" blockcount %llu, state %d\n",
> -				i, (unsigned long long)rec.br_startoff,
> -				(unsigned long long)rec.br_startblock,
> -				(unsigned long long)rec.br_blockcount,
> -				(int)rec.br_state);
> -			i++;
> -		}
> -	}
> -	printf("    i_df.if_broot %lx\n", (unsigned long)ip->i_df.if_broot);
> -	printf("    i_df.if_broot_bytes %x\n", ip->i_df.if_broot_bytes);
> -
> -	dip = &ip->i_d;
> -	printf("\nOn disk portion\n");
> -	printf("    di_mode %o\n", VFS_I(ip)->i_mode);
> -	printf("    di_version %x\n", (uint)dip->di_version);
> -	switch (ip->i_d.di_format) {
> -	case XFS_DINODE_FMT_LOCAL:
> -		printf("    Inline inode\n");
> -		break;
> -	case XFS_DINODE_FMT_EXTENTS:
> -		printf("    Extents inode\n");
> -		break;
> -	case XFS_DINODE_FMT_BTREE:
> -		printf("    B-tree inode\n");
> -		break;
> -	default:
> -		printf("    Other inode\n");
> -		break;
> -	}
> -	printf("   di_nlink %x\n", VFS_I(ip)->i_nlink);
> -	printf("   di_uid %d\n", dip->di_uid);
> -	printf("   di_gid %d\n", dip->di_gid);
> -	printf("   di_nextents %d\n", dip->di_nextents);
> -	printf("   di_size %llu\n", (unsigned long long)dip->di_size);
> -	printf("   di_gen %x\n", VFS_I(ip)->i_generation);
> -	printf("   di_extsize %d\n", dip->di_extsize);
> -	printf("   di_flags %x\n", dip->di_flags);
> -	printf("   di_nblocks %llu\n", (unsigned long long)dip->di_nblocks);
> -}
> -
>  /*
>   * Writes a modified inode's changes out to the inode's on disk home.
>   * Originally based on xfs_iflush_int() from xfs_inode.c in the kernel.
> diff --git a/repair/btree.c b/repair/btree.c
> index a402d0a67349..292fa518d019 100644
> --- a/repair/btree.c
> +++ b/repair/btree.c
> @@ -444,29 +444,6 @@ btree_lookup_prev(
>  	return value;
>  }
>  
> -static void *
> -btree_uncached_lookup(
> -	struct btree_root	*root,
> -	unsigned long		key)
> -{
> -	/* cursor-less (ie. uncached) lookup */
> -	int			height = root->height - 1;
> -	struct btree_node	*node = root->root_node;
> -	int			i;
> -	int			key_found = 0;
> -
> -	while (height >= 0) {
> -		for (i = 0; i < node->num_keys; i++)
> -			if (node->keys[i] >= key) {
> -				key_found = node->keys[i] == key;
> -				break;
> -			}
> -		node = node->ptrs[i];
> -		height--;
> -	}
> -	return key_found ? node : NULL;
> -}
> -
>  /* Update functions */
>  
>  static inline void
> -- 
> 2.17.0
> 

-- 
Carlos

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 1/2] xfsprogs: document changes for 4.19.0-rc0
  2018-10-10  7:10 ` [PATCH 1/2] xfsprogs: document changes " Dave Chinner
@ 2018-10-10 13:46   ` Eric Sandeen
  2018-10-10 21:27     ` Dave Chinner
  2018-10-10 14:44   ` Darrick J. Wong
  1 sibling, 1 reply; 9+ messages in thread
From: Eric Sandeen @ 2018-10-10 13:46 UTC (permalink / raw)
  To: Dave Chinner, linux-xfs

On 10/10/18 2:10 AM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
> 
> Because 'make deb' breaks without them.
> 
> Signed-off-by: Dave Chinner <dchinner@redhat.com>

Ugh, sorry about that, still not used to build systems that break on unchangelogged git tags ...


(that is the trigger, right?  the tag?)

Reviewed-by: Eric Sandeen <sandeen@redhat.com>


> ---
>  debian/changelog | 7 +++++++
>  doc/CHANGES      | 7 +++++++
>  2 files changed, 14 insertions(+)
> 
> diff --git a/debian/changelog b/debian/changelog
> index 01639f9efeec..ef129e278948 100644
> --- a/debian/changelog
> +++ b/debian/changelog
> @@ -1,3 +1,10 @@
> +xfsprogs (4.19.0-rc0-1) unstable; urgency=low
> +
> +  * New upstream pre-release
> +  * Merge libxfs changes from kernel-4.19
> +
> + -- Nathan Scott <nathans@debian.org>  Wed, 10 Oct 2018 17:52:48 +1100
> +
>  xfsprogs (4.18.0-1) unstable; urgency=low
>  
>    * New upstream release
> diff --git a/doc/CHANGES b/doc/CHANGES
> index 3c1e39469008..1c41bd90a1c5 100644
> --- a/doc/CHANGES
> +++ b/doc/CHANGES
> @@ -1,3 +1,10 @@
> +xfsprogs-4.18.0-rc0 (10 Oct 2018)
> +	- Majority of 4.18 libxfs changes merged from kernel
> +	- Big sparse static checker cleanup (Eric Sandeen)
> +	- mkfs.xfs discard fixes (Jan Tulak)
> +	- xfs_io readv/writev cleanup (Zorro Lang)
> +	- libxfs transaction commit error checking (Darrick Wong)
> +
>  xfsprogs-4.18.0 (24 Aug 2018)
>  	- Tweak SPDX license in xfs_cksum.h (Darrick Wong)
>  
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/2] xfsprogs: remove unused functions
  2018-10-10  7:10 ` [PATCH 2/2] xfsprogs: remove unused functions Dave Chinner
  2018-10-10 13:17   ` Carlos Maiolino
@ 2018-10-10 13:48   ` Eric Sandeen
  2018-10-10 14:44   ` Darrick J. Wong
  2 siblings, 0 replies; 9+ messages in thread
From: Eric Sandeen @ 2018-10-10 13:48 UTC (permalink / raw)
  To: Dave Chinner, linux-xfs

On 10/10/18 2:10 AM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
> 
> Clean up build warnings about defined by not used functions by
> removing them.
> 
> Signed-off-by: Dave Chinner <dchinner@redhat.com>

Ok - Yeah, I knew these were there and was going to clean it up before release.
I was going to ask if anyone ever used these for debugging and
see about just using an unused attribute rather than removing them.

If nobody asks for that, I'll merge this.


Thanks,

Reviewed-by: Eric Sandeen <sandeen@redhat.com>

> ---
>  libxfs/rdwr.c  |  8 -------
>  libxfs/util.c  | 63 --------------------------------------------------
>  repair/btree.c | 23 ------------------
>  3 files changed, 94 deletions(-)
> 
> diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c
> index 753b9396fbe5..e580aba1d7ee 100644
> --- a/libxfs/rdwr.c
> +++ b/libxfs/rdwr.c
> @@ -544,14 +544,6 @@ libxfs_bcompare(struct cache_node *node, cache_key_t key)
>  	return CACHE_MISS;
>  }
>  
> -static void
> -libxfs_bprint(xfs_buf_t *bp)
> -{
> -	fprintf(stderr, "Buffer %p blkno=%llu bytes=%u flags=0x%x count=%u\n",
> -		bp, (unsigned long long)bp->b_bn, (unsigned)bp->b_bcount,
> -		bp->b_flags, bp->b_node.cn_count);
> -}
> -
>  static void
>  __initbuf(xfs_buf_t *bp, struct xfs_buftarg *btp, xfs_daddr_t bno,
>  		unsigned int bytes)
> diff --git a/libxfs/util.c b/libxfs/util.c
> index 993218615d00..ffd265094b4c 100644
> --- a/libxfs/util.c
> +++ b/libxfs/util.c
> @@ -380,69 +380,6 @@ libxfs_ialloc(
>  	return 0;
>  }
>  
> -static void
> -libxfs_iprint(
> -	xfs_inode_t		*ip)
> -{
> -	struct xfs_icdinode	*dip;
> -	xfs_extnum_t		i = 0;
> -	struct xfs_ifork	*ifp;		/* inode fork pointer */
> -	struct xfs_iext_cursor	icur;
> -	xfs_bmbt_irec_t		rec;
> -
> -	printf("Inode %lx\n", (unsigned long)ip);
> -	printf("    i_ino %llx\n", (unsigned long long)ip->i_ino);
> -
> -	if (ip->i_df.if_flags & XFS_IFEXTENTS)
> -		printf("EXTENTS ");
> -	printf("\n");
> -	printf("    i_df.if_bytes %d\n", ip->i_df.if_bytes);
> -	printf("    i_df.if_u1.if_root/if_data %lx\n",
> -		(unsigned long)ip->i_df.if_u1.if_root);
> -	if (ip->i_df.if_flags & XFS_IFEXTENTS) {
> -		ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK);
> -		for_each_xfs_iext(ifp, &icur, &rec) {
> -			printf("\t%d: startoff %llu, startblock 0x%llx,"
> -				" blockcount %llu, state %d\n",
> -				i, (unsigned long long)rec.br_startoff,
> -				(unsigned long long)rec.br_startblock,
> -				(unsigned long long)rec.br_blockcount,
> -				(int)rec.br_state);
> -			i++;
> -		}
> -	}
> -	printf("    i_df.if_broot %lx\n", (unsigned long)ip->i_df.if_broot);
> -	printf("    i_df.if_broot_bytes %x\n", ip->i_df.if_broot_bytes);
> -
> -	dip = &ip->i_d;
> -	printf("\nOn disk portion\n");
> -	printf("    di_mode %o\n", VFS_I(ip)->i_mode);
> -	printf("    di_version %x\n", (uint)dip->di_version);
> -	switch (ip->i_d.di_format) {
> -	case XFS_DINODE_FMT_LOCAL:
> -		printf("    Inline inode\n");
> -		break;
> -	case XFS_DINODE_FMT_EXTENTS:
> -		printf("    Extents inode\n");
> -		break;
> -	case XFS_DINODE_FMT_BTREE:
> -		printf("    B-tree inode\n");
> -		break;
> -	default:
> -		printf("    Other inode\n");
> -		break;
> -	}
> -	printf("   di_nlink %x\n", VFS_I(ip)->i_nlink);
> -	printf("   di_uid %d\n", dip->di_uid);
> -	printf("   di_gid %d\n", dip->di_gid);
> -	printf("   di_nextents %d\n", dip->di_nextents);
> -	printf("   di_size %llu\n", (unsigned long long)dip->di_size);
> -	printf("   di_gen %x\n", VFS_I(ip)->i_generation);
> -	printf("   di_extsize %d\n", dip->di_extsize);
> -	printf("   di_flags %x\n", dip->di_flags);
> -	printf("   di_nblocks %llu\n", (unsigned long long)dip->di_nblocks);
> -}
> -
>  /*
>   * Writes a modified inode's changes out to the inode's on disk home.
>   * Originally based on xfs_iflush_int() from xfs_inode.c in the kernel.
> diff --git a/repair/btree.c b/repair/btree.c
> index a402d0a67349..292fa518d019 100644
> --- a/repair/btree.c
> +++ b/repair/btree.c
> @@ -444,29 +444,6 @@ btree_lookup_prev(
>  	return value;
>  }
>  
> -static void *
> -btree_uncached_lookup(
> -	struct btree_root	*root,
> -	unsigned long		key)
> -{
> -	/* cursor-less (ie. uncached) lookup */
> -	int			height = root->height - 1;
> -	struct btree_node	*node = root->root_node;
> -	int			i;
> -	int			key_found = 0;
> -
> -	while (height >= 0) {
> -		for (i = 0; i < node->num_keys; i++)
> -			if (node->keys[i] >= key) {
> -				key_found = node->keys[i] == key;
> -				break;
> -			}
> -		node = node->ptrs[i];
> -		height--;
> -	}
> -	return key_found ? node : NULL;
> -}
> -
>  /* Update functions */
>  
>  static inline void
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 1/2] xfsprogs: document changes for 4.19.0-rc0
  2018-10-10  7:10 ` [PATCH 1/2] xfsprogs: document changes " Dave Chinner
  2018-10-10 13:46   ` Eric Sandeen
@ 2018-10-10 14:44   ` Darrick J. Wong
  1 sibling, 0 replies; 9+ messages in thread
From: Darrick J. Wong @ 2018-10-10 14:44 UTC (permalink / raw)
  To: Dave Chinner; +Cc: linux-xfs

On Wed, Oct 10, 2018 at 06:10:22PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
> 
> Because 'make deb' breaks without them.
> 
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
>  debian/changelog | 7 +++++++
>  doc/CHANGES      | 7 +++++++
>  2 files changed, 14 insertions(+)
> 
> diff --git a/debian/changelog b/debian/changelog
> index 01639f9efeec..ef129e278948 100644
> --- a/debian/changelog
> +++ b/debian/changelog
> @@ -1,3 +1,10 @@
> +xfsprogs (4.19.0-rc0-1) unstable; urgency=low
> +
> +  * New upstream pre-release
> +  * Merge libxfs changes from kernel-4.19
> +
> + -- Nathan Scott <nathans@debian.org>  Wed, 10 Oct 2018 17:52:48 +1100
> +
>  xfsprogs (4.18.0-1) unstable; urgency=low
>  
>    * New upstream release
> diff --git a/doc/CHANGES b/doc/CHANGES
> index 3c1e39469008..1c41bd90a1c5 100644
> --- a/doc/CHANGES
> +++ b/doc/CHANGES
> @@ -1,3 +1,10 @@
> +xfsprogs-4.18.0-rc0 (10 Oct 2018)

4.19-rc0, right?

--D

> +	- Majority of 4.18 libxfs changes merged from kernel
> +	- Big sparse static checker cleanup (Eric Sandeen)
> +	- mkfs.xfs discard fixes (Jan Tulak)
> +	- xfs_io readv/writev cleanup (Zorro Lang)
> +	- libxfs transaction commit error checking (Darrick Wong)
> +
>  xfsprogs-4.18.0 (24 Aug 2018)
>  	- Tweak SPDX license in xfs_cksum.h (Darrick Wong)
>  
> -- 
> 2.17.0
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/2] xfsprogs: remove unused functions
  2018-10-10  7:10 ` [PATCH 2/2] xfsprogs: remove unused functions Dave Chinner
  2018-10-10 13:17   ` Carlos Maiolino
  2018-10-10 13:48   ` Eric Sandeen
@ 2018-10-10 14:44   ` Darrick J. Wong
  2 siblings, 0 replies; 9+ messages in thread
From: Darrick J. Wong @ 2018-10-10 14:44 UTC (permalink / raw)
  To: Dave Chinner; +Cc: linux-xfs

On Wed, Oct 10, 2018 at 06:10:23PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
> 
> Clean up build warnings about defined by not used functions by
> removing them.
> 
> Signed-off-by: Dave Chinner <dchinner@redhat.com>

Fine with me; if anyone wants them in the future they can put them back.

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>

--D

> ---
>  libxfs/rdwr.c  |  8 -------
>  libxfs/util.c  | 63 --------------------------------------------------
>  repair/btree.c | 23 ------------------
>  3 files changed, 94 deletions(-)
> 
> diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c
> index 753b9396fbe5..e580aba1d7ee 100644
> --- a/libxfs/rdwr.c
> +++ b/libxfs/rdwr.c
> @@ -544,14 +544,6 @@ libxfs_bcompare(struct cache_node *node, cache_key_t key)
>  	return CACHE_MISS;
>  }
>  
> -static void
> -libxfs_bprint(xfs_buf_t *bp)
> -{
> -	fprintf(stderr, "Buffer %p blkno=%llu bytes=%u flags=0x%x count=%u\n",
> -		bp, (unsigned long long)bp->b_bn, (unsigned)bp->b_bcount,
> -		bp->b_flags, bp->b_node.cn_count);
> -}
> -
>  static void
>  __initbuf(xfs_buf_t *bp, struct xfs_buftarg *btp, xfs_daddr_t bno,
>  		unsigned int bytes)
> diff --git a/libxfs/util.c b/libxfs/util.c
> index 993218615d00..ffd265094b4c 100644
> --- a/libxfs/util.c
> +++ b/libxfs/util.c
> @@ -380,69 +380,6 @@ libxfs_ialloc(
>  	return 0;
>  }
>  
> -static void
> -libxfs_iprint(
> -	xfs_inode_t		*ip)
> -{
> -	struct xfs_icdinode	*dip;
> -	xfs_extnum_t		i = 0;
> -	struct xfs_ifork	*ifp;		/* inode fork pointer */
> -	struct xfs_iext_cursor	icur;
> -	xfs_bmbt_irec_t		rec;
> -
> -	printf("Inode %lx\n", (unsigned long)ip);
> -	printf("    i_ino %llx\n", (unsigned long long)ip->i_ino);
> -
> -	if (ip->i_df.if_flags & XFS_IFEXTENTS)
> -		printf("EXTENTS ");
> -	printf("\n");
> -	printf("    i_df.if_bytes %d\n", ip->i_df.if_bytes);
> -	printf("    i_df.if_u1.if_root/if_data %lx\n",
> -		(unsigned long)ip->i_df.if_u1.if_root);
> -	if (ip->i_df.if_flags & XFS_IFEXTENTS) {
> -		ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK);
> -		for_each_xfs_iext(ifp, &icur, &rec) {
> -			printf("\t%d: startoff %llu, startblock 0x%llx,"
> -				" blockcount %llu, state %d\n",
> -				i, (unsigned long long)rec.br_startoff,
> -				(unsigned long long)rec.br_startblock,
> -				(unsigned long long)rec.br_blockcount,
> -				(int)rec.br_state);
> -			i++;
> -		}
> -	}
> -	printf("    i_df.if_broot %lx\n", (unsigned long)ip->i_df.if_broot);
> -	printf("    i_df.if_broot_bytes %x\n", ip->i_df.if_broot_bytes);
> -
> -	dip = &ip->i_d;
> -	printf("\nOn disk portion\n");
> -	printf("    di_mode %o\n", VFS_I(ip)->i_mode);
> -	printf("    di_version %x\n", (uint)dip->di_version);
> -	switch (ip->i_d.di_format) {
> -	case XFS_DINODE_FMT_LOCAL:
> -		printf("    Inline inode\n");
> -		break;
> -	case XFS_DINODE_FMT_EXTENTS:
> -		printf("    Extents inode\n");
> -		break;
> -	case XFS_DINODE_FMT_BTREE:
> -		printf("    B-tree inode\n");
> -		break;
> -	default:
> -		printf("    Other inode\n");
> -		break;
> -	}
> -	printf("   di_nlink %x\n", VFS_I(ip)->i_nlink);
> -	printf("   di_uid %d\n", dip->di_uid);
> -	printf("   di_gid %d\n", dip->di_gid);
> -	printf("   di_nextents %d\n", dip->di_nextents);
> -	printf("   di_size %llu\n", (unsigned long long)dip->di_size);
> -	printf("   di_gen %x\n", VFS_I(ip)->i_generation);
> -	printf("   di_extsize %d\n", dip->di_extsize);
> -	printf("   di_flags %x\n", dip->di_flags);
> -	printf("   di_nblocks %llu\n", (unsigned long long)dip->di_nblocks);
> -}
> -
>  /*
>   * Writes a modified inode's changes out to the inode's on disk home.
>   * Originally based on xfs_iflush_int() from xfs_inode.c in the kernel.
> diff --git a/repair/btree.c b/repair/btree.c
> index a402d0a67349..292fa518d019 100644
> --- a/repair/btree.c
> +++ b/repair/btree.c
> @@ -444,29 +444,6 @@ btree_lookup_prev(
>  	return value;
>  }
>  
> -static void *
> -btree_uncached_lookup(
> -	struct btree_root	*root,
> -	unsigned long		key)
> -{
> -	/* cursor-less (ie. uncached) lookup */
> -	int			height = root->height - 1;
> -	struct btree_node	*node = root->root_node;
> -	int			i;
> -	int			key_found = 0;
> -
> -	while (height >= 0) {
> -		for (i = 0; i < node->num_keys; i++)
> -			if (node->keys[i] >= key) {
> -				key_found = node->keys[i] == key;
> -				break;
> -			}
> -		node = node->ptrs[i];
> -		height--;
> -	}
> -	return key_found ? node : NULL;
> -}
> -
>  /* Update functions */
>  
>  static inline void
> -- 
> 2.17.0
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 1/2] xfsprogs: document changes for 4.19.0-rc0
  2018-10-10 13:46   ` Eric Sandeen
@ 2018-10-10 21:27     ` Dave Chinner
  0 siblings, 0 replies; 9+ messages in thread
From: Dave Chinner @ 2018-10-10 21:27 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: linux-xfs

On Wed, Oct 10, 2018 at 08:46:59AM -0500, Eric Sandeen wrote:
> On 10/10/18 2:10 AM, Dave Chinner wrote:
> > From: Dave Chinner <dchinner@redhat.com>
> > 
> > Because 'make deb' breaks without them.
> > 
> > Signed-off-by: Dave Chinner <dchinner@redhat.com>
> 
> Ugh, sorry about that, still not used to build systems that break on unchangelogged git tags ...
> 
> 
> (that is the trigger, right?  the tag?)

No, it has nothing to do with git. The trigger is the package version
set in VERSION and/or configure.ac not matching the documentation,
which means it is in inconsistent state....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-10-11  4:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-10  7:10 [PATCH 0/2] xfsprogs: build fixes for 4.19.0-rc0 Dave Chinner
2018-10-10  7:10 ` [PATCH 1/2] xfsprogs: document changes " Dave Chinner
2018-10-10 13:46   ` Eric Sandeen
2018-10-10 21:27     ` Dave Chinner
2018-10-10 14:44   ` Darrick J. Wong
2018-10-10  7:10 ` [PATCH 2/2] xfsprogs: remove unused functions Dave Chinner
2018-10-10 13:17   ` Carlos Maiolino
2018-10-10 13:48   ` Eric Sandeen
2018-10-10 14:44   ` Darrick J. Wong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.