Whamcloud - gitweb
LU-8579 osd-ldiskfs: code cleanup for osd_ldiskfs_add_entry 07/22307/6
authorFan Yong <fan.yong@intel.com>
Thu, 7 Jul 2016 21:30:25 +0000 (05:30 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 29 Sep 2016 15:00:26 +0000 (15:00 +0000)
commit3ed0a4a64642751931fcc397511c4a118e3d1a51
tree3893cb11bdaba30e3c3777eecae2a2f878fca044
parent5207c488239e30e9aee51531ec3a363c649211de
LU-8579 osd-ldiskfs: code cleanup for osd_ldiskfs_add_entry

Commit 07660ad33a7d1 can give more warning message when directory
size exceeds limitation. But some variables that are allocated
on stack are unnecessary and may cause overflow.

Further more, the "osd_thread_info::oti_dev" is obsolete, should
not be used any more. The fid_seq_is_mdt0() is used against zero
FID, will be replaced by checking whether the device is for MDT0.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Idfe2a4546535b3863e84ce5753b8a86c369dadae
Reviewed-on: http://review.whamcloud.com/22307
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_oi.c