]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/ocfs2/inode.c
ocfs2: small cleanup of ocfs2_request_delete()
authorMark Fasheh <mark.fasheh@oracle.com>
Wed, 21 Mar 2007 00:17:54 +0000 (17:17 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Thu, 26 Apr 2007 21:40:55 +0000 (14:40 -0700)
commit6f16bf655c5795586dd2ac96a7c70e0b9a378746
tree60421c8d65c48de636e6ebb2b215a924fdd7fcd0
parent68e2b740c4b5394680cfefccddbdb486c5866a4c
ocfs2: small cleanup of ocfs2_request_delete()

There are two checks in there (one for inode newness, one for other mounted
nodes) which are unnecessary, so remove them. The DLM will allow the trylock
in either case without any messaging overhead.

Removing these makes ocfs2_request_delete() a one liner function, so just
move the trylock out one level into ocfs2_query_inode_wipe().

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/inode.c