Whamcloud - gitweb
LU-911 obdclass: la_from_obdo helper
authorAlex Zhuravlev <bzzz@whamcloud.com>
Fri, 25 Nov 2011 07:39:49 +0000 (10:39 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 Apr 2012 05:29:46 +0000 (01:29 -0400)
commit5bcec28c0b07bb154a5a2ae491a119c2fd7791da
tree3c104e16e0dd456e6fa56004d13c3c8ce4a0e5d1
parent90913da176b3529758bc6fa52701373d92389440
LU-911 obdclass: la_from_obdo helper

- OFD will need la_from_obdo() conversion.
- Fix obdo_from_la() to work with la flags.
- Call obdo_set_parent_fid() directly when needed instead of
  using obdo_from_inode() just to update parent fid
- Make obdo_from_inode() consistent with its name and don't
  update parent FID from.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Ib1a7d0a4a3e19434ae48c74b06b153d2fc5e5d78
Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1848
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
12 files changed:
lustre/include/linux/obd_class.h
lustre/include/obd.h
lustre/lclient/lcommon_cl.c
lustre/liblustre/file.c
lustre/liblustre/super.c
lustre/llite/file.c
lustre/llite/llite_lib.c
lustre/mdd/mdd_lov.c
lustre/obdclass/linux/linux-obdo.c
lustre/obdclass/obdo.c
lustre/obdfilter/filter.c
lustre/obdfilter/filter_io_26.c