From: Al Viro Date: Fri, 4 Mar 2011 06:18:19 +0000 (-0500) Subject: omfs: stop playing silly buggers with omfs_unlink() in ->rename() X-Git-Tag: v2.6.39-rc1~420^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdb26496dba00d5c4375261be6518b3e94260444;p=pandora-kernel.git omfs: stop playing silly buggers with omfs_unlink() in ->rename() Since omfs directories are hashes of inodes and name is part of inode, we have to remove inode from old directory before we can put it into new one / under new name. So instead of bump i_nlink call omfs_unlink, which does omfs_delete_entry() decrement i_nlink and mark parent dirty in case of success decrement i_nlink if omfs_unlink failed and hadn't done it itself let's just call omfs_delete_entry() and dirty the parent ourselves... Signed-off-by: Al Viro Signed-off-by: Bob Copeland --- Reading git-diff-tree failed