summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2012-06-05 15:10:23 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-14 16:33:15 +0400
commitd2c127197dfc0b2bae62a52e1e0d3e3ff493919e (patch)
tree75a30530499790ace8af09f9442f111f59564647 /fs/cifs/cifsfs.c
parentc8ccbe032feb127a977c66865cb63d72d9a6e08b (diff)
downloadop-kernel-dev-d2c127197dfc0b2bae62a52e1e0d3e3ff493919e.zip
op-kernel-dev-d2c127197dfc0b2bae62a52e1e0d3e3ff493919e.tar.gz
cifs: implement i_op->atomic_open()
Add an ->atomic_open implementation which replaces the atomic lookup+open+create operation implemented via ->lookup and ->create operations. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> CC: Steve French <sfrench@samba.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index bcab12c..c0c2751a 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -777,6 +777,7 @@ struct file_system_type cifs_fs_type = {
};
const struct inode_operations cifs_dir_inode_ops = {
.create = cifs_create,
+ .atomic_open = cifs_atomic_open,
.lookup = cifs_lookup,
.getattr = cifs_getattr,
.unlink = cifs_unlink,
OpenPOWER on IntegriCloud