Whamcloud - gitweb
LU-2675 llite: remove generic operations from llite/namei.c 69/10769/6
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 20 Jun 2014 17:32:19 +0000 (12:32 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 15 Sep 2014 18:19:12 +0000 (18:19 +0000)
commit08cf056915cbab31a7b7a88d75cc2cba7bfe02ce
tree95e59ad9a056eb2c4d6546a8794b9bfa59d10e83
parentf1918fee9a8459a522f37530da5c5a0aa4bab551
LU-2675 llite: remove generic operations from llite/namei.c

Remove the llite inode operation wrappers ll_mknod(), ll_unlink(),
ll_mkdir(), ll_rmdir(), ll_symlink(), ll_link(), and ll_rename(),
replacing them with calls to ll_mknod_generic(), but rename these
functions to drop the _generic suffix. Remove several variables that
are always NULL after this transformation. Simplify some control flow,
using the knowledge that certain variables are never NULL. Replace
calls to ll_d_mountpoint() with equivalent calls to d_mountpoint() and
remove the then unused function ll_d_mountpoint(). Remove the
effectively unused lookup_flags parameter from ll_create_it().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ib1757399c66a119e842d3361f184128ce2b96a78
Reviewed-on: http://review.whamcloud.com/10769
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/namei.c