* [PATCH] btrfs: correct wrong comment about magic number of index_cnt
@ 2018-01-12 3:08 Su Yue
2018-01-12 3:08 ` Su Yue
2018-01-12 3:18 ` Su Yue
0 siblings, 2 replies; 4+ messages in thread
From: Su Yue @ 2018-01-12 3:08 UTC (permalink / raw)
To: linux-btrfs; +Cc: suy.fnst
There is no function named btrfs_get_inode_index_count.
Explanation for magic number index_cnt=2 in btrfs_new_inode() is
actually located in btrfs_set_inode_index_count().
So replace 'btrfs_get_inode_index_count' in the comment by
'btrfs_set_inode_index_count'.
Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
---
fs/btrfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 37bdb78b4766..f6454719192e 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -6315,7 +6315,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
}
/*
* index_cnt is ignored for everything but a dir,
- * btrfs_get_inode_index_count has an explanation for the magic
+ * btrfs_set_inode_index_count has an explanation for the magic
* number
*/
BTRFS_I(inode)->index_cnt = 2;
--
2.15.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] btrfs: correct wrong comment about magic number of index_cnt
2018-01-12 3:08 [PATCH] btrfs: correct wrong comment about magic number of index_cnt Su Yue
@ 2018-01-12 3:08 ` Su Yue
2018-01-16 15:22 ` David Sterba
2018-01-12 3:18 ` Su Yue
1 sibling, 1 reply; 4+ messages in thread
From: Su Yue @ 2018-01-12 3:08 UTC (permalink / raw)
To: linux-btrfs; +Cc: suy.fnst
There is no function named btrfs_get_inode_index_count.
Explanation for magic number index_cnt=2 in btrfs_new_inode() is
actually located in btrfs_set_inode_index_count().
So replace 'btrfs_get_inode_index_count' in the comment by
'btrfs_set_inode_index_count'.
Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
---
fs/btrfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 37bdb78b4766..f6454719192e 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -6315,7 +6315,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
}
/*
* index_cnt is ignored for everything but a dir,
- * btrfs_get_inode_index_count has an explanation for the magic
+ * btrfs_set_inode_index_count has an explanation for the magic
* number
*/
BTRFS_I(inode)->index_cnt = 2;
--
2.15.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] btrfs: correct wrong comment about magic number of index_cnt
2018-01-12 3:08 [PATCH] btrfs: correct wrong comment about magic number of index_cnt Su Yue
2018-01-12 3:08 ` Su Yue
@ 2018-01-12 3:18 ` Su Yue
1 sibling, 0 replies; 4+ messages in thread
From: Su Yue @ 2018-01-12 3:18 UTC (permalink / raw)
To: linux-btrfs
Sorry, the two patches are same.
Please the latter one.
Thanks,
Su
On 01/12/2018 11:08 AM, Su Yue wrote:
> There is no function named btrfs_get_inode_index_count.
> Explanation for magic number index_cnt=2 in btrfs_new_inode() is
> actually located in btrfs_set_inode_index_count().
>
> So replace 'btrfs_get_inode_index_count' in the comment by
> 'btrfs_set_inode_index_count'.
>
> Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
> ---
> fs/btrfs/inode.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
> index 37bdb78b4766..f6454719192e 100644
> --- a/fs/btrfs/inode.c
> +++ b/fs/btrfs/inode.c
> @@ -6315,7 +6315,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
> }
> /*
> * index_cnt is ignored for everything but a dir,
> - * btrfs_get_inode_index_count has an explanation for the magic
> + * btrfs_set_inode_index_count has an explanation for the magic
> * number
> */
> BTRFS_I(inode)->index_cnt = 2;
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] btrfs: correct wrong comment about magic number of index_cnt
2018-01-12 3:08 ` Su Yue
@ 2018-01-16 15:22 ` David Sterba
0 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2018-01-16 15:22 UTC (permalink / raw)
To: Su Yue; +Cc: linux-btrfs
On Fri, Jan 12, 2018 at 11:08:03AM +0800, Su Yue wrote:
> There is no function named btrfs_get_inode_index_count.
> Explanation for magic number index_cnt=2 in btrfs_new_inode() is
> actually located in btrfs_set_inode_index_count().
>
> So replace 'btrfs_get_inode_index_count' in the comment by
> 'btrfs_set_inode_index_count'.
>
> Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Added to 4.16 queue, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-01-16 15:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-12 3:08 [PATCH] btrfs: correct wrong comment about magic number of index_cnt Su Yue
2018-01-12 3:08 ` Su Yue
2018-01-16 15:22 ` David Sterba
2018-01-12 3:18 ` Su Yue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).