From: Jeff Layton Date: Tue, 23 Sep 2008 15:48:35 +0000 (-0400) Subject: cifs: move rename and delete-on-close logic into helper function X-Git-Tag: v2.6.28-rc1~718^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12a1ac7a474b3680b9cce9f64a4f78123aecf37;p=pandora-kernel.git cifs: move rename and delete-on-close logic into helper function cifs: move rename and delete-on-close logic into helper function When a file is still open on the server, we attempt to set the DELETE_ON_CLOSE bit and rename it to a new filename. When the last opener closes the file, the server should delete it. This patch moves this mechanism into a helper function and has the two places in cifs_unlink that do this procedure call it. It also fixes the open flags to be correct. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed