You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
@@ -777,6 +777,7 @@ struct file_system_type cifs_fs_type = {
|
|||||||
};
|
};
|
||||||
const struct inode_operations cifs_dir_inode_ops = {
|
const struct inode_operations cifs_dir_inode_ops = {
|
||||||
.create = cifs_create,
|
.create = cifs_create,
|
||||||
|
.atomic_open = cifs_atomic_open,
|
||||||
.lookup = cifs_lookup,
|
.lookup = cifs_lookup,
|
||||||
.getattr = cifs_getattr,
|
.getattr = cifs_getattr,
|
||||||
.unlink = cifs_unlink,
|
.unlink = cifs_unlink,
|
||||||
|
|||||||
@@ -46,6 +46,9 @@ extern const struct inode_operations cifs_dir_inode_ops;
|
|||||||
extern struct inode *cifs_root_iget(struct super_block *);
|
extern struct inode *cifs_root_iget(struct super_block *);
|
||||||
extern int cifs_create(struct inode *, struct dentry *, umode_t,
|
extern int cifs_create(struct inode *, struct dentry *, umode_t,
|
||||||
struct nameidata *);
|
struct nameidata *);
|
||||||
|
extern struct file *cifs_atomic_open(struct inode *, struct dentry *,
|
||||||
|
struct opendata *, unsigned, umode_t,
|
||||||
|
bool *);
|
||||||
extern struct dentry *cifs_lookup(struct inode *, struct dentry *,
|
extern struct dentry *cifs_lookup(struct inode *, struct dentry *,
|
||||||
struct nameidata *);
|
struct nameidata *);
|
||||||
extern int cifs_unlink(struct inode *dir, struct dentry *dentry);
|
extern int cifs_unlink(struct inode *dir, struct dentry *dentry);
|
||||||
|
|||||||
+221
-176
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user