Whamcloud - gitweb
- for proto better use simple seq. allocation without using meta-sequence which is...
authoryury <yury>
Tue, 11 Apr 2006 16:36:40 +0000 (16:36 +0000)
committeryury <yury>
Tue, 11 Apr 2006 16:36:40 +0000 (16:36 +0000)
commitb81692b3681f3ae1387b142ab5833515acd09a3a
tree445e8500d46dd2f85153777595ca580235453557
parent6f17c1e52553790e23bd24d9d81eb01c10d576d0
- for proto better use simple seq. allocation without using meta-sequence which is going to improve later;
- implement simple ll_fid_alloc() which allocates new fids on client;
- implemented simple ll_fid2ino() which allocates client inode numbers from passed fid;

- root object is allocated in separate sequence with number 1. Sequences and fid numbers with value 0 are not allowed by ldlm - fixing that. First seq is 1, first fid in seq is 1;

- implemented simple mdt_alloc_seq() which allocates new sequences to clients;
- fixes in mdt_init_seq();
- using sema instead of spinlock in mdt_alloc_seq(), as bumping the seq and saving it to back store should be atomic operation and sleeping on possible IO with lcoked spin lock is not allowed.
lustre/include/linux/lustre_idl.h
lustre/llite/llite_fid.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/mdd/mdd_handler.c
lustre/mdd/mdd_internal.h
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/obdclass/lu_object.c
lustre/ptlrpc/pack_generic.c