Skip to content

Commit 51779d3

Browse files
committed
fixed branch messup
1 parent 10615d7 commit 51779d3

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

libglusterfs/src/glusterfs/inode.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ struct _inode {
111111
struct list_head dentry_list; /* list of directory entries for this inode */
112112
struct list_head hash; /* hash table pointers */
113113
struct list_head list; /* active/lru/purge */
114-
uintptr_t read_mask;
115114

116115
struct _inode *ns_inode; /* This inode would point to namespace inode */
117116
bool in_invalidate_list; /* Set if inode is in table invalidate list */

xlators/cluster/ec/src/ec-inode-read.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,9 +1379,6 @@ ec_manager_readv(ec_fop_data_t *fop, int32_t state)
13791379
if (ec->read_mask) {
13801380
fop->mask &= ec->read_mask;
13811381
}
1382-
if (fop->fd->inode->read_mask != 0){
1383-
fop->mask &= fop->fd->inode->read_mask;
1384-
}
13851382
ec_dispatch_min(fop);
13861383

13871384
return EC_STATE_PREPARE_ANSWER;

xlators/cluster/ec/src/ec-inode-write.c

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -710,29 +710,13 @@ ec_setxattr(call_frame_t *frame, xlator_t *this, uintptr_t target,
710710
ec_cbk_t callback = {.setxattr = func};
711711
ec_fop_data_t *fop = NULL;
712712
int32_t error = ENOMEM;
713-
data_t *dict_data = NULL;
714-
char *mask_key = "user.readmask";
715-
int ret = 0;
716-
int op_ret = -1;
717713

718714
gf_msg_trace("ec", 0, "EC(SETXATTR) %p", frame);
719715

720716
VALIDATE_OR_GOTO(this, out);
721717
GF_VALIDATE_OR_GOTO(this->name, frame, out);
722718
GF_VALIDATE_OR_GOTO(this->name, this->private, out);
723719

724-
ret = dict_lookup(dict, mask_key, &dict_data);
725-
if(!ret && dict_data){
726-
if(loc != NULL && loc->inode != NULL){
727-
loc->inode->read_mask = data_to_uint16(dict_data);
728-
}
729-
dict_deln(dict, mask_key, strlen(mask_key));
730-
dict_data = NULL;
731-
error = 0;
732-
op_ret = 0;
733-
goto out;
734-
}
735-
736720
fop = ec_fop_data_allocate(frame, this, GF_FOP_SETXATTR, 0, target,
737721
fop_flags, ec_wind_setxattr, ec_manager_xattr,
738722
callback, data);
@@ -773,7 +757,7 @@ ec_setxattr(call_frame_t *frame, xlator_t *this, uintptr_t target,
773757

774758
ec_t *ec = fop->xl->private;
775759
int64_t val = 0;
776-
ret = dict_get_int64(fop->dict, SQUOTA_LIMIT_KEY, &val);
760+
int ret = dict_get_int64(fop->dict, SQUOTA_LIMIT_KEY, &val);
777761
if (IS_SUCCESS(ret)) {
778762
/* divide the total usage to priv->fragments */
779763
int64_t new_value = val / ec->fragments;
@@ -791,7 +775,7 @@ ec_setxattr(call_frame_t *frame, xlator_t *this, uintptr_t target,
791775
if (fop != NULL) {
792776
ec_manager(fop, error);
793777
} else {
794-
func(frame, NULL, this, op_ret, error, NULL);
778+
func(frame, NULL, this, -1, error, NULL);
795779
}
796780
}
797781

0 commit comments

Comments
 (0)