lkml.org 
[lkml]   [2011]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 08/13] logfs: remove unnecessary nlink setting
    Date
    From: Miklos Szeredi <mszeredi@suse.cz>

    alloc_inode() initializes i_nlink to 1. Remove unnecessary
    re-initialization.

    Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
    CC: Joern Engel <joern@logfs.org>
    CC: Prasad Joshi <prasadjoshi.linux@gmail.com>
    ---
    fs/logfs/inode.c | 1 -
    1 files changed, 0 insertions(+), 1 deletions(-)

    diff --git a/fs/logfs/inode.c b/fs/logfs/inode.c
    index edfea7a..9abb048 100644
    --- a/fs/logfs/inode.c
    +++ b/fs/logfs/inode.c
    @@ -199,7 +199,6 @@ static void logfs_init_inode(struct super_block *sb, struct inode *inode)
    inode->i_blocks = 0;
    inode->i_ctime = CURRENT_TIME;
    inode->i_mtime = CURRENT_TIME;
    - inode->i_nlink = 1;
    li->li_refcount = 1;
    INIT_LIST_HEAD(&li->li_freeing_list);

    --
    1.7.3.4


    \
     
     \ /
      Last update: 2011-10-28 14:17    [W:0.027 / U:2.532 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site