]> Pileus Git - ~andy/linux/blobdiff - fs/cifs/cifsglob.h
cifs: use a flexarray in cifs_writedata
[~andy/linux] / fs / cifs / cifsglob.h
index a245d1809ed8d63dc7ee5cbc5320bb117a12c71e..d6a031ed391b5598bcc28537f181a2c35e9f0e29 100644 (file)
@@ -395,6 +395,10 @@ struct smb_version_operations {
        int (*set_EA)(const unsigned int, struct cifs_tcon *, const char *,
                        const char *, const void *, const __u16,
                        const struct nls_table *, int);
+       struct cifs_ntsd * (*get_acl)(struct cifs_sb_info *, struct inode *,
+                       const char *, u32 *);
+       int (*set_acl)(struct cifs_ntsd *, __u32, struct inode *, const char *,
+                       int);
 };
 
 struct smb_version_values {
@@ -1064,7 +1068,7 @@ struct cifs_writedata {
        unsigned int                    pagesz;
        unsigned int                    tailsz;
        unsigned int                    nr_pages;
-       struct page                     *pages[1];
+       struct page                     *pages[];
 };
 
 /*