ceph: only link open operations to directory unsafe list if O_CREAT|O_TRUNC
authorSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:27:59 +0000 (11:27 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:27:59 +0000 (11:27 -0700)
commit9bae113a085b790de384bf86f09e15b42a65a985
tree44d42141bf2d61a3098cedb381ec775cded8ac89
parentacda76578813ef893004ecad0e5ad2bb6039e5f7
ceph: only link open operations to directory unsafe list if O_CREAT|O_TRUNC

We only need to put these on the directory unsafe list if they have
side effects that fsync(2) should flush out.

Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/file.c