lkml.org 
[lkml]   [2018]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode()
    Date
    We don't need to call dquot_initialize() twice in jfs_evict_inode(),
    remove one of them for cleanup.

    Signed-off-by: Chao Yu <yuchao0@huawei.com>
    ---
    fs/jfs/inode.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c
    index 054cc761b426..805ae9e8944a 100644
    --- a/fs/jfs/inode.c
    +++ b/fs/jfs/inode.c
    @@ -166,7 +166,6 @@ void jfs_evict_inode(struct inode *inode)
    /*
    * Free the inode from the quota allocation.
    */
    - dquot_initialize(inode);
    dquot_free_inode(inode);
    }
    } else {
    --
    2.18.0.rc1
    \
     
     \ /
      Last update: 2018-09-17 09:13    [W:2.924 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site