Message ID | 20180126083519.28373-8-suy.fnst@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 2018年01月26日 16:35, Su Yue wrote: > In check_dir_item, we are going to search corresponding > dir_item/index. > @key shouldn't be used here. It should be @di_key. > > Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Thanks, Qu > --- > cmds-check.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/cmds-check.c b/cmds-check.c > index 4ce6139b3ab1..caac71a67472 100644 > --- a/cmds-check.c > +++ b/cmds-check.c > @@ -6001,7 +6001,7 @@ begin: > > /* check relative INDEX/ITEM */ > key.objectid = di_key->objectid; > - if (key.type == BTRFS_DIR_ITEM_KEY) { > + if (di_key->type == BTRFS_DIR_ITEM_KEY) { > key.type = BTRFS_DIR_INDEX_KEY; > key.offset = index; > } else { >
diff --git a/cmds-check.c b/cmds-check.c index 4ce6139b3ab1..caac71a67472 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -6001,7 +6001,7 @@ begin: /* check relative INDEX/ITEM */ key.objectid = di_key->objectid; - if (key.type == BTRFS_DIR_ITEM_KEY) { + if (di_key->type == BTRFS_DIR_ITEM_KEY) { key.type = BTRFS_DIR_INDEX_KEY; key.offset = index; } else {
In check_dir_item, we are going to search corresponding dir_item/index. @key shouldn't be used here. It should be @di_key. Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com> --- cmds-check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)