> On Fri, 02 Feb 2007 20:09:40 +0530 Kalpak Shah <[EMAIL PROTECTED]> wrote:
> +#define EXT3_INODE_GET_XTIME(xtime, extra_xtime, inode, raw_inode)
> \
> +do {
> \
> +     (inode)->xtime.tv_sec = le32_to_cpu((raw_inode)->xtime);
> \
> +                                                                           \
> +     if (offsetof(typeof(*raw_inode), extra_xtime) -
> \
> +         offsetof(typeof(*raw_inode), i_extra_isize) +
> \
> +         sizeof((raw_inode)->extra_xtime) <=
> \
> +         le16_to_cpu((raw_inode)->i_extra_isize)) {
> \
> +             if (sizeof((inode)->xtime.tv_sec) > 4)                        \
> +                     (inode)->xtime.tv_sec |=                              \
> +                     (__u64)(le32_to_cpu((raw_inode)->extra_xtime) &       \
> +                             EXT3_EPOCH_MASK) << 32;                       \
> +                     (inode)->xtime.tv_nsec =                              \
> +                             (le32_to_cpu((raw_inode)->extra_xtime) &      \
> +                             EXT3_NSEC_MASK) >> 2;                         \
> +     }
> \
> +} while (0)

ow, my eyes.  Can we find a way to do this in C rather than in cpp?

> +static inline struct timespec ext3_current_time(struct inode *inode)
> +{
> +     return (inode->i_sb->s_time_gran < 1000000000) ?

NSEC_PER_SEC

> +             current_fs_time(inode->i_sb) : CURRENT_TIME_SEC;
> +}
-
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to