X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosd-ldiskfs%2Fosd_internal.h;h=b47f6539921d094c530f0f5368dabeaa89f5f9ce;hp=7ad0c244c8a5df11bc8713f17b9c82758714df8b;hb=af46e574eeebe23c5a6146a134fa00ee91931de3;hpb=eaf3353fce3384e21b1310c2feb847a7c01eb131 diff --git a/lustre/osd-ldiskfs/osd_internal.h b/lustre/osd-ldiskfs/osd_internal.h index 7ad0c24..b47f653 100644 --- a/lustre/osd-ldiskfs/osd_internal.h +++ b/lustre/osd-ldiskfs/osd_internal.h @@ -913,6 +913,11 @@ static inline char *osd_name(struct osd_device *osd) return osd->od_dt_dev.dd_lu_dev.ld_obd->obd_name; } +static inline bool osd_is_ea_inode(struct inode *inode) +{ + return !!(LDISKFS_I(inode)->i_flags & LDISKFS_EA_INODE_FL); +} + extern const struct dt_body_operations osd_body_ops; extern struct lu_context_key osd_key;