On Thu, Sep 07, 2017 at 02:33:58PM -0500, Goldwyn Rodrigues wrote:
> From: Goldwyn Rodrigues <rgold...@suse.com>
> 
> is_deleted() function is no longer in use and can be safely removed.
> 
> Signed-off-by: Goldwyn Rodrigues <rgold...@suse.com>

Acked-by: Seth Arnold <seth.arn...@canonical.com>

Thanks

> --- 
> diff --git a/security/apparmor/file.c b/security/apparmor/file.c
> index 3382518b87fa..242cd5c09761 100644
> --- a/security/apparmor/file.c
> +++ b/security/apparmor/file.c
> @@ -152,19 +152,6 @@ int aa_audit_file(struct aa_profile *profile, struct 
> aa_perms *perms,
>       return aa_audit(type, profile, &sa, file_audit_cb);
>  }
>  
> -/**
> - * is_deleted - test if a file has been completely unlinked
> - * @dentry: dentry of file to test for deletion  (NOT NULL)
> - *
> - * Returns: %1 if deleted else %0
> - */
> -static inline bool is_deleted(struct dentry *dentry)
> -{
> -     if (d_unlinked(dentry) && d_backing_inode(dentry)->i_nlink == 0)
> -             return 1;
> -     return 0;
> -}
> -
>  static int path_name(const char *op, struct aa_label *label,
>                    const struct path *path, int flags, char *buffer,
>                    const char **name, struct path_cond *cond, u32 request)

Attachment: signature.asc
Description: PGP signature

-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to