static const int STATE_EXPORTINGCAPS = (1<<10);
static const int STATE_NEEDSRECOVER = (1<<11);
static const int STATE_RECOVERING = (1<<12);
- static const int STATE_NO_SIZE_CHECK = (1<<13);
- static const int STATE_PURGING = (1<<14);
+ static const int STATE_PURGING = (1<<13);
// -- waiters --
static const __u64 WAIT_DIR = (1<<0);
// count conflicts with
int nissued = 0;
- // should we increase client ranges?
- if (in->is_file() &&
- ((all_allowed|loner_allowed) & CEPH_CAP_FILE_WR) &&
- in->is_auth() &&
- !in->state_test(CInode::STATE_NO_SIZE_CHECK))
- // we force an update here, which among other things avoids twiddling
- // the lock state.
- check_inode_max_size(in, true);
-
// client caps
map<int, Capability*>::iterator it;
if (only_cap)
if (change_max &&
!in->filelock.can_wrlock(client)) {
dout(10) << " i want to change file_max, but lock won't allow it (yet)" << dendl;
- in->state_set(CInode::STATE_NO_SIZE_CHECK);
if (in->filelock.is_stable()) {
bool need_issue = false;
cap->inc_suppress();
issue_caps(in);
cap->dec_suppress();
}
- in->state_clear(CInode::STATE_NO_SIZE_CHECK);
if (!in->filelock.can_wrlock(client)) {
in->filelock.add_waiter(SimpleLock::WAIT_STABLE, new C_MDL_CheckMaxSize(this, in));
change_max = false;