xattr.c (68a2054d88f7cd2866806148d9a2e4389eb46992) | xattr.c (8244f3209b5b49a6bde9921d7825af9f57161b23) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3#include "bcachefs.h" 4#include "bkey_methods.h" 5#include "btree_update.h" 6#include "extents.h" 7#include "fs.h" 8#include "rebalance.h" --- 511 unchanged lines hidden (view full) --- 520 u64 v = 0; 521 522 buf = kmalloc(size + 1, GFP_KERNEL); 523 if (!buf) 524 return -ENOMEM; 525 memcpy(buf, value, size); 526 buf[size] = '\0'; 527 | 1// SPDX-License-Identifier: GPL-2.0 2 3#include "bcachefs.h" 4#include "bkey_methods.h" 5#include "btree_update.h" 6#include "extents.h" 7#include "fs.h" 8#include "rebalance.h" --- 511 unchanged lines hidden (view full) --- 520 u64 v = 0; 521 522 buf = kmalloc(size + 1, GFP_KERNEL); 523 if (!buf) 524 return -ENOMEM; 525 memcpy(buf, value, size); 526 buf[size] = '\0'; 527 |
528 ret = bch2_opt_parse(c, opt, buf, &v); | 528 ret = bch2_opt_parse(c, NULL, opt, buf, &v); |
529 kfree(buf); 530 531 if (ret < 0) 532 return ret; 533 534 ret = bch2_opt_check_may_set(c, opt_id, v); 535 if (ret < 0) 536 return ret; --- 93 unchanged lines hidden --- | 529 kfree(buf); 530 531 if (ret < 0) 532 return ret; 533 534 ret = bch2_opt_check_may_set(c, opt_id, v); 535 if (ret < 0) 536 return ret; --- 93 unchanged lines hidden --- |