Loading fs/nfs/nfs4state.c +2 −5 Original line number Original line Diff line number Diff line Loading @@ -333,14 +333,11 @@ __nfs4_find_state_byowner(struct inode *inode, struct nfs4_state_owner *owner) struct nfs4_state *state; struct nfs4_state *state; list_for_each_entry(state, &nfsi->open_states, inode_states) { list_for_each_entry(state, &nfsi->open_states, inode_states) { /* Is this in the process of being freed? */ if (state->owner != owner) if (state->state == 0) continue; continue; if (state->owner == owner) { if (atomic_inc_not_zero(&state->count)) atomic_inc(&state->count); return state; return state; } } } return NULL; return NULL; } } Loading Loading
fs/nfs/nfs4state.c +2 −5 Original line number Original line Diff line number Diff line Loading @@ -333,14 +333,11 @@ __nfs4_find_state_byowner(struct inode *inode, struct nfs4_state_owner *owner) struct nfs4_state *state; struct nfs4_state *state; list_for_each_entry(state, &nfsi->open_states, inode_states) { list_for_each_entry(state, &nfsi->open_states, inode_states) { /* Is this in the process of being freed? */ if (state->owner != owner) if (state->state == 0) continue; continue; if (state->owner == owner) { if (atomic_inc_not_zero(&state->count)) atomic_inc(&state->count); return state; return state; } } } return NULL; return NULL; } } Loading