]> git.neil.brown.name Git - LaFS.git/commit
atime: make sure block is reserved before updating.
authorNeilBrown <neilb@suse.de>
Mon, 2 May 2011 01:33:23 +0000 (11:33 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 2 May 2011 01:40:24 +0000 (11:40 +1000)
commit0f76112ac50e497ddde809c5910cc64ed1da1b8e
treebf33d45a0bd81f9bc7af9c0514e014b0806a1aeb
parente712a11bede6a2bf6d81e2ebbdc856dfe787d43a
atime: make sure block is reserved before updating.

We need to 'reserve' space for the atime file blocks before updating
them.  This could of course fail.  If it does we could lose the
update, but as long as that is very rare it shouldn't be a problem.

When we fix things so the block hardly ever gets written, we should
also fix it to reserve the block when we first take the reference.
Then also refresh the reservation after writing.

Also fix up some comments and stuff.

Signed-off-by: NeilBrown <neilb@suse.de>
inode.c
test/go