difference between common iattr and inode fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

If i look at the file linux/fs.h for definition of struct inode i
notice that following fields-


       struct timespec         i_atime;
       struct timespec         i_mtime;
       struct timespec         i_ctime;
       umode_t                 i_mode;
       uid_t           i_uid;
       gid_t           i_gid;

are also present in the struct iattr defined in the same file, though
with a slightly modified name, viz -

        umode_t         ia_mode;
        uid_t           ia_uid;
        gid_t           ia_gid;
        struct timespec ia_atime;
        struct timespec ia_mtime;
        struct timespec ia_ctime;

Why keep then both? Why can't we make struct iattr a member of inode
itself, maybe via a pointer?
is there a reason not to do so?

Thanks,
      --Pradeep

-- 
play the game

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux