Skip to content

Commit

Permalink
ksmbd: smb1: remove now unused compat_generic_fillattr
Browse files Browse the repository at this point in the history
Signed-off-by: Marios Makassikis <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
Marios Makassikis authored and namjaejeon committed Mar 1, 2024
1 parent 4ccc24f commit dd996a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
26 changes: 0 additions & 26 deletions compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
#endif

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0)
void compat_generic_fillattr(struct path *path, u32 request_mask,
struct inode *inode, struct kstat *kstat)
{
generic_fillattr(mnt_idmap(path->mnt), request_mask,
inode, kstat);

}

int compat_ksmbd_vfs_get_dos_attrib_xattr(const struct path *path,
struct dentry *dentry,
struct xattr_dos_attrib *da)
Expand Down Expand Up @@ -46,13 +38,6 @@ int compat_inode_permission(struct path *path, struct inode *inode, int mask)

}

void compat_generic_fillattr(struct path *path, u32 request_mask,
struct inode *inode, struct kstat *kstat)
{
generic_fillattr(mnt_idmap(path->mnt), inode, kstat);

}

int compat_ksmbd_vfs_get_dos_attrib_xattr(const struct path *path,
struct dentry *dentry,
struct xattr_dos_attrib *da)
Expand Down Expand Up @@ -81,12 +66,6 @@ int compat_inode_permission(struct path *path, struct inode *inode, int mask)
{
return inode_permission(mnt_user_ns(path->mnt), inode, mask);

}
void compat_generic_fillattr(struct path *path, u32 request_mask,
struct inode *inode, struct kstat *kstat)
{
generic_fillattr(mnt_user_ns(path->mnt), inode, kstat);

}

int compat_ksmbd_vfs_get_dos_attrib_xattr(const struct path *path,
Expand Down Expand Up @@ -118,11 +97,6 @@ int compat_inode_permission(struct path *path, struct inode *inode, int mask)
return inode_permission(inode, mask);

}
void compat_generic_fillattr(struct path *path, u32 request_mask,
struct inode *inode, struct kstat *kstat)
{
generic_fillattr(inode, kstat);
}
int compat_ksmbd_vfs_get_dos_attrib_xattr(const struct path *path,
struct dentry *dentry,
struct xattr_dos_attrib *da)
Expand Down
3 changes: 0 additions & 3 deletions compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ struct xattr_dos_attrib;

/* linux vfs */
int compat_inode_permission(struct path *path, struct inode *inode, int mask);
void compat_generic_fillattr(struct path *path, u32 request_mask,
struct inode *inode, struct kstat *kstat);


/* ksmbd vfs */
ssize_t compat_ksmbd_vfs_getxattr(struct path *path, struct dentry *dentry,
Expand Down

0 comments on commit dd996a3

Please sign in to comment.