]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: simplify get_dirfrag()
authorSage Weil <sage@inktank.com>
Sat, 29 Sep 2012 08:27:33 +0000 (01:27 -0700)
committerSage Weil <sage@inktank.com>
Sat, 29 Sep 2012 08:27:33 +0000 (01:27 -0700)
commit7594e9ce0f1dadfa4631e29fb4924027484e3f87
treeca6d0d44dc5bcd391af66179f331fb913938c64e
parentbef66e010b03a8e2639003881e78c754bba57ebe
mds: simplify get_dirfrag()

Avoid useless have_inode() call.

CID 716996: Dereference null return value (NULL_RETURNS)
At (13): Dereferencing a pointer that might be null "this->get_inode(df.ino, snapid_t(18446744073709551614UL))" when calling "CInode::get_dirfrag(frag_t)". [hide details]

Signed-off-by: Sage Weil <sage@inktank.com>
src/mds/MDCache.h