lkml.org 
[lkml]   [2006]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[RFC] [PATCH 8/8] inode-diet: Fix size of i_blkbits, i_version, and i_dnotify_mask
    From
    i_blkbits stores the log n of the blocksize; there is no reason for it
    to take more than 16 bits, so change it to be a short and put it next
    to i_mode.

    i_version and i_dnotify_mask need to be 32 bits, but there is no
    reason for them to be 64-bit values on 64-bit architectures, so make
    them be unsigned int's instead of unsigned long's.

    Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

    Index: linux-2.6.17/include/linux/fs.h
    ===================================================================
    --- linux-2.6.17.orig/include/linux/fs.h 2006-06-19 07:29:36.000000000 -0400
    +++ linux-2.6.17/include/linux/fs.h 2006-06-19 07:48:02.000000000 -0400
    @@ -483,6 +483,7 @@
    unsigned long i_ino;
    atomic_t i_count;
    umode_t i_mode;
    + unsigned short i_blkbits;
    unsigned int i_nlink;
    uid_t i_uid;
    gid_t i_gid;
    @@ -490,8 +491,7 @@
    struct timespec i_atime;
    struct timespec i_mtime;
    struct timespec i_ctime;
    - unsigned int i_blkbits;
    - unsigned long i_version;
    + unsigned int i_version;
    spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */
    struct mutex i_mutex;
    struct rw_semaphore i_alloc_sem;
    @@ -523,7 +523,7 @@
    __u32 i_generation;

    #ifdef CONFIG_DNOTIFY
    - unsigned long i_dnotify_mask; /* Directory notify events */
    + unsigned int i_dnotify_mask; /* Directory notify events */
    struct dnotify_struct *i_dnotify; /* for directory notifications */
    #endif

    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-06-19 17:35    [W:4.116 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site