Skip to content

Commit

Permalink
deepin: KABI: KABI reservation for dentry
Browse files Browse the repository at this point in the history
    structure                size reserves reserved

    dentry                   200     2      216
    dentry_operations        104     3      128

Link: https://gitee.com/openeuler/kernel/issues/I91CF6
Signed-off-by: Baokun Li <[email protected]>
Signed-off-by: WangYuli <[email protected]>
  • Loading branch information
LiBaokun96 authored and Avenger-285714 committed Oct 8, 2024
1 parent 638a894 commit d591914
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/linux/dcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/lockref.h>
#include <linux/stringhash.h>
#include <linux/wait.h>
#include <linux/deepin_kabi.h>

struct path;
struct file;
Expand Down Expand Up @@ -111,6 +112,9 @@ struct dentry {
struct hlist_bl_node d_in_lookup_hash; /* only for in-lookup ones */
struct rcu_head d_rcu;
} d_u;

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
} __randomize_layout;

/*
Expand Down Expand Up @@ -140,6 +144,10 @@ struct dentry_operations {
struct vfsmount *(*d_automount)(struct path *);
int (*d_manage)(const struct path *, bool);
struct dentry *(*d_real)(struct dentry *, const struct inode *);

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
} ____cacheline_aligned;

/*
Expand Down

0 comments on commit d591914

Please sign in to comment.